I'm trying to create a custom popup but I'm having issues with one of my fields that contains a URL. I've tried adding the field to a text popup, but it returns the field value, but the link is broken.
If I pull up the record in ArcGIS Pro and copy the value, I get:
Reserve a site by visiting <strong><a href="https://www.recreation.gov/camping/campgrounds/234288">Recreation.gov</a></strong> or by calling Toll Free 1-877-444-6777 (International 518-885-3639 or TDD 877-833-6777).
If I add the field to a text element of the popup it returns the text with a broken link, but the field in the fields list returns the link with a working link.
I do not have the ability to edit this data, but I'm also open to using an arcade expression to extract just the URL and recreate this for the popup.
Solved! Go to Solution.
The text element has two modes.
The first mode is a "what-you-see-is-what-you-get" editor. This will not interpret HTML (You can see that it didn't only "break" your link, it also didn't interpret the strong tag or the entities). You can write your text in here and then create the link with the editor tools.
Or you can switch to HTML mode. This mode is an HTML editor. It will interpret HTML code put into it (a small subset anyway).
The text element has two modes.
The first mode is a "what-you-see-is-what-you-get" editor. This will not interpret HTML (You can see that it didn't only "break" your link, it also didn't interpret the strong tag or the entities). You can write your text in here and then create the link with the editor tools.
Or you can switch to HTML mode. This mode is an HTML editor. It will interpret HTML code put into it (a small subset anyway).
Thanks Johannes, so it's as I suspected. Unfortunately this is a corporate dataset and I can't change the attribute values which contain the html link already built, so I'll have to go figure out how to extract the URL and rebuild it manually with Arcade.