Select to view content in your preferred language

Using Arcade in Map Viewer to have same popup formatting as custom attribute display in Classic Map Viewer

664
3
Jump to solution
05-13-2025 11:05 PM
Labels (1)
Ken-Middleton
Occasional Contributor

I’ve liked the ease of building a custom attribute display for popups in Classic Map Viewer, particularly combining data from a text field with a field with a url, as shown in the attached images (one in the module, and the other a popup in the public interface). 

But I’m unclear about how to do this in Map Viewer using Arcade. Although I’ve looked at tutorial videos on Arcade for popups, most are either too advanced or do not cover how to do what I want to do. Is there an example of something similar that I can follow?

0 Kudos
1 Solution

Accepted Solutions
Ken-Middleton
Occasional Contributor

Jen,

Your solution worked for me. Thanks!

-Ken

View solution in original post

0 Kudos
3 Replies
JenniferAcunto
Esri Regular Contributor

If I'm reading this correctly, you want to create a hyperlink in your pop-up, using one field for the hyperlink text and another field for the hyperlink URL. You do not need to use Arcade for that. 

In the pop-up builder, add a Text element.

JenniferAcunto_0-1747229144058.png

 

Add your two fields using the fields list picker. 

Highlight and cut the field that contains your URL. 

Highlight the field that contains your the text and click on the link button.

Paste in your URL field and click on the green check mark.

Hyperlink FieldsHyperlink Fields

 

JenniferAcunto_1-1747229458872.png

 

You would only need to use Arcade if you had to build the URL from multiple fields in your data. 

 

 

 

- Jen
0 Kudos
Ken-Middleton
Occasional Contributor

Jen,

Many thanks for this, particularly for embedding a visual example in it that makes the steps easy to follow. I'll give it a try.

-Ken

0 Kudos
Ken-Middleton
Occasional Contributor

Jen,

Your solution worked for me. Thanks!

-Ken

0 Kudos