HOW TO
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.
.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>
The image below shows the collapsed and expanded sections in the Map Viewer pop-up.

Article ID: 000036822
Get help from ArcGIS experts
Start chatting now