HOW TO

Create collapsible sections in ArcGIS Online or Enterprise Map Viewer pop-ups

Last Published: August 20, 2025

Summary

In ArcGIS Enterprise or ArcGIS Online Map Viewer, collapsible sections in pop-ups help organize additional information that is not required for immediate viewing when loading data. This approach enhances readability by reducing clutter in the pop-ups and improves the user experience by allowing on-demand access to the information.

This article describes the workflow to create collapsible sections in pop-ups by using HTML in the ArcGIS Enterprise portal and ArcGIS Online Map Viewer.

Procedure

  1. Log in to the ArcGIS Enterprise portal or ArcGIS Online and open the web map in Map Viewer.
  2. In Map Viewer, on the Settings (light) toolbar, click Pop-ups Pop-ups icon.
  3. In the Pop-ups pane, click Add content and select Text.
  4. In the text editor, click Source Source icon.
  5. Configure the HTML codes using the <details> tags for each section.

Below is an example of the HTML code for creating two collapsible sections in Map Viewer.

<details>
    <summary>Road length: [click to expand]</summary>
    <p>
        {length}
    </p>
</details>
<details>
    <summary>Road type: [click to expand]</summary>
    <p>
        {formOfWay}
    </p>
</details>
  1. Click Source. The table is displayed in the text editor.
  2. Click OK to close the text editor.
  3. On the Contents (dark) toolbar, click Save and open > Save to save the modifications.

The image below shows the collapsed and expanded sections in the Map Viewer pop-up.

The collapsed and expanded sections in the Map Viewer pop-up

Article ID: 000036822

Software:
  • ArcGIS Online
  • Portal for ArcGIS
  • ArcGIS Enterprise

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options