Select to view content in your preferred language

Dynamic text or button within list display text options based on attribute

66
1
yesterday
Labels (1)
SHealy2468
New Contributor

I have a point feature that in the attribute table contains links to a PDF if available.   I would like to have a button or text available in my list widget  for the PDF .  However I would like the button  text or text widget change depending on whether or not the attribute has a link in the attribute.  if I use a text widget and just set the dynamic text to the attribute field the whole link appears for the features which have the link which messy and does not convey what the link is to.  If I use a button I can set the text to read "PDF"  but the button and text appears the same regardless of whether or not that feature has a link present in that attribute field. I have tried creating an expression though Im not sure i have used the feature correctly. Is there a solution where I can have the text or button widget read "PDF" or "No PDF"  depending on whether or not that attribute is populated.

0 Kudos
1 Reply
JeffreyThompson2
MVP Frequent Contributor

So you already tried using an Expression as in this post? If designing an Expression like that didn't work, then there probably isn't a way to do this in a List Widget.

By default, properly formatted, fully written out web links (for example: https//www.google.com) will become clickable in Popups, the Feature Info Widget and Table Widget. And the Popup or Feature Info Widget options could be additionally controlled and styled with options in the Web MapViewer, including using Arcade.

GIS Developer
City of Arlington, Texas
0 Kudos