AnsweredAssumed Answered

Hyperlink within expression of pop-up in AGOL

Question asked by abakiera on Apr 10, 2019
Latest reply on May 28, 2019 by xander_bakker


We have a scenario where we want one of the results in the pop-up to show up as a hyperlink, but only if it hits a certain domain in that layer. If you see the screenshot below, you'll notice "Fiber Service Available." This layer has an expression set up to display different messages depending on the domain. We want a hyperlink here but only if fiber is available. We don't want the message to be a hyperlink if it is different from "Fiber Service Available". I attempted to insert HTML code to create a url into the expression arcade window but I got an 'invalid token' message. This suggests to me that HTML and Arcade don't go together (correct me if I'm wrong). Another thing that complicates this is that the HTML window (for the custom attribute display) is already set up to display the icon  next to the message. Is there a way that I can modify my expression to generate a hyperlink if "Fiber Service is Available" but to not have a hyperlink if any other message displays?