Experience Builder: Links to Website

256
3
03-25-2024 11:45 AM
Labels (1)
MapMaven
New Contributor II

Hello,

I am working on a web application that shows construction projects using Experience Builder with a colleague and we would like to include website links to the project that will provide more detail. Unfortunately not all projects have websites, and if the user clicks on the "Click Here" link, it will take them to a black screen. This isn't the best user experience and we are looking for a way to conditionally show the text "Click Here". For example, if the  weblink field in the hosted feature layer is empty, we would like the text "Not Available" to be displayed. I've provided a snapshot below for reference.

MapMaven_0-1711391626125.png

 

Tags (1)
3 Replies
JeffSilberberg
Occasional Contributor III

Assuming you are building the link in Arcade --  You could either return a link to default "sorry there is not currently any additional project data available" page or remove the link or maybe href="#"  if there is no URL to populate it with. 

0 Kudos
MapMaven
New Contributor II

I didn't see an option to build a link in Arcade. I am using dynamic text within a list widget to link to the website. Alternatively, I can populate the "More Info" line by connecting to the field in the database that has the URL address, but then there is the problem of the whole website address showing and it just looks messy, but it would solve my problem and show "Not Available" if there is no webpage for the project. Is there a way to display a shortened version of the URL? Or is there an alternative that I'm not thinking of? Thank you for an insights you can provide.

MapMaven_0-1712347242862.png

 

Tags (1)
0 Kudos
JeffSilberberg
Occasional Contributor III

Just build a text string for more Info. <a href="https://................................."> Click here for Additional Park </a> Where the https string is what you are already building. 

https://www.w3schools.com/tags/tag_a.asp

0 Kudos