I am trying to create an Arcade expression that inserts a hyperlink as text. Is this possible just in Arcade or does this require html formatting in the popup?
Field = SampleBallotURL
I want my expression to show...
If SampleBallotURL is empty or null, return "No sample ballot available at this time."
Else (if it's not empty or null) return "Click <a href=Sample BallotURL>here</a> to view a sample ballot."
I've tried this, but you can see (in the images), the 'No sample...' portion works but the hyperlink does not appear as text where the condition is false.
IIF(IsEmpty($feature.SampleBallotURL),'No sample ballot available at this time.','Click <a href=$feature.SampleBallotURL>here </a> to view sample ballot.')


Can somebody point me in the right direction? I've read some other posts that indicate I need to do some html work in the popup but I'm not sure how to do that and get it so that only one of these lines is returned.
I should add that when include quotation marks like in a normal <a href> they appear in the popup.
