ListView - Can we disable clickable?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
chan2015
 
 
Posts: 20
Joined: Thu Nov 28, 2019 11:15 am

ListView - Can we disable clickable?

Post by chan2015 »

I used the ListView object to type 4 categories of info i.e. address, email, operating hours & contact info. I realized when a mobile user tap on the listview ... it will bring them to an blank#blocked page ...
Every item in the ListView has a "Link" section ... How can we just disable it & choose none?
User avatar
Pablo
 
Posts: 23442
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: ListView - Can we disable clickable?

Post by Pablo »

If you do not assign a link to an item then it will not clickable.
chan2015
 
 
Posts: 20
Joined: Thu Nov 28, 2019 11:15 am

Re: ListView - Can we disable clickable?

Post by chan2015 »

I did not assign a link ... but when tap on it in mobile browser ... will bring to a blank page.

I just tried to fix it by adding an event to its layout grid ... onclick --> disable --> self. I think it works.
User avatar
Pablo
 
Posts: 23442
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: ListView - Can we disable clickable?

Post by Pablo »

If you add a new listview from the toolbox then no links will be added.
chan2015
 
 
Posts: 20
Joined: Thu Nov 28, 2019 11:15 am

Re: ListView - Can we disable clickable?

Post by chan2015 »

I have tried your suggestion... drag a new listview from toolbox ... edited 2 listview entries (added some info, did not key in anything in the link section) ... publish it in my domain ...
As usual, when click on the listview items via desktop browser, nothing will happen ... which is what I wanted. But when tap via iOS(safari) or android (chrome) ... it will bring to a blank page with error URL.

I have looked at the .html file ... the list item has an empty link
<li><a href="http://"> ....
Just dunno why the mobile browser would react differently as compared to desktop browser.
User avatar
Pablo
 
Posts: 23442
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: ListView - Can we disable clickable?

Post by Pablo »

A new listview with default settings will not contain any links. Maybe you have always changed other properties?
chan2015
 
 
Posts: 20
Joined: Thu Nov 28, 2019 11:15 am

Re: ListView - Can we disable clickable?

Post by chan2015 »

Indeed, a completely new listview ... checked its <>HTML code ... does not contain any "<a href=...>.
but once click edit and modify the Description under the Title ... an empty <a href="http://"> will automatically be added.
User avatar
Pablo
 
Posts: 23442
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: ListView - Can we disable clickable?

Post by Pablo »

I'm sorry, but for me no links are added when I edit the description.
Can you please describe step by step how the link is added?
chan2015
 
 
Posts: 20
Joined: Thu Nov 28, 2019 11:15 am

Re: ListView - Can we disable clickable?

Post by chan2015 »

I am not sure if the "empty http://" is considered as a link. Instead of a written description, watch the video below:-

https://youtu.be/1C2ZdK1Ciz8

The "empty" link seems to have an effect when tap upon in mobile browser.
User avatar
Pablo
 
Posts: 23442
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: ListView - Can we disable clickable?

Post by Pablo »

Please remove http:\\ from the URL field or set the link type to 'page in this project' and do not select a page.
chan2015
 
 
Posts: 20
Joined: Thu Nov 28, 2019 11:15 am

Re: ListView - Can we disable clickable?

Post by chan2015 »

It works by setting the Page within this project. Tap on the listview in a mobile browser, the page will try to refresh once but will stay in the same page.

After that, I tried to remove the "http://" ... oddly enough, this time round, the program did not auto add the empty link "http://" back to the html code. It also works. Previously, it always get added back ... :)
Post Reply