Page 1 of 1
ListView - Can we disable clickable?
Posted: Fri Dec 06, 2019 2:37 pm
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?
Re: ListView - Can we disable clickable?
Posted: Fri Dec 06, 2019 3:08 pm
by Pablo
If you do not assign a link to an item then it will not clickable.
Re: ListView - Can we disable clickable?
Posted: Fri Dec 06, 2019 3:16 pm
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.
Re: ListView - Can we disable clickable?
Posted: Fri Dec 06, 2019 3:22 pm
by Pablo
If you add a new listview from the toolbox then no links will be added.
Re: ListView - Can we disable clickable?
Posted: Sat Dec 07, 2019 1:32 am
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.
Re: ListView - Can we disable clickable?
Posted: Sat Dec 07, 2019 8:02 am
by Pablo
A new listview with default settings will not contain any links. Maybe you have always changed other properties?
Re: ListView - Can we disable clickable?
Posted: Sat Dec 07, 2019 12:52 pm
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.
Re: ListView - Can we disable clickable?
Posted: Sat Dec 07, 2019 12:59 pm
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?
Re: ListView - Can we disable clickable?
Posted: Sun Dec 08, 2019 5:40 am
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.
Re: ListView - Can we disable clickable?
Posted: Sun Dec 08, 2019 8:23 am
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.
Re: ListView - Can we disable clickable?
Posted: Sun Dec 08, 2019 11:21 am
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 ...
