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.
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.
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.
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.