<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create an expand/collapse section in Map Viewer popup in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1699148#M68558</link>
    <description>&lt;P&gt;I'm trying to get this working in the web map in Portal 11.3, but it's just showing as plain text. Any idea if there are any CSS properties that could be updated to make this work in that interface too?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2026 19:15:08 GMT</pubDate>
    <dc:creator>JohnNergeBrooklynPark</dc:creator>
    <dc:date>2026-04-29T19:15:08Z</dc:date>
    <item>
      <title>Create an expand/collapse section in Map Viewer popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1625354#M65144</link>
      <description>&lt;P&gt;Does anyone know if&amp;nbsp; it's possible to create an expandable/collapsible section in a popup in Map Viewer?&amp;nbsp; In my popup I have a 'facilities' section which I would like to display as hidden when the popup loads, but give the option to the user to expand the section if they wish.&lt;/P&gt;&lt;P&gt;My popup currently looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MappyIan_0-1750428083490.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134712iDB5A156D9F1CD4C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MappyIan_0-1750428083490.png" alt="MappyIan_0-1750428083490.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But what I'd like is for the Facilities selection to load collapsed with an option/button the user can click to expand, something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MappyIan_1-1750428250970.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134713i915086D2FCEF3BD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MappyIan_1-1750428250970.png" alt="MappyIan_1-1750428250970.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can add&amp;nbsp;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;style='display:none;'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to the relevant &lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;&amp;lt;div&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt; in my popup but I can't figure out how to make it visible again. I think I need to use some JavaScript, but that seems to get stripped from the popup (presumably a security risk?).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 14:21:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1625354#M65144</guid>
      <dc:creator>MappyIan</dc:creator>
      <dc:date>2025-06-20T14:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create an expand/collapse section in Map Viewer popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1625842#M65172</link>
      <description>&lt;P&gt;One way to accomplish this could be to use the HTML details disclosure element. This creates a collapsible section using only HTML. If you click on&amp;nbsp; one of the ballot drop box locations in this &lt;A href="https://www.arcgis.com/apps/mapviewer/index.html?webmap=05bb9c04847e42f9a8b4a0c89afb6e2d" target="_self"&gt;map&lt;/A&gt; you'll see the collapsible area.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;details&amp;gt;
    &amp;lt;summary&amp;gt;Drop Box Location:&amp;lt;/summary&amp;gt;
    &amp;lt;p&amp;gt;
        {boxlocdesc}
    &amp;lt;/p&amp;gt;
&amp;lt;/details&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KellyHutchins_0-1750701137720.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134851iEBECF3E736652439/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KellyHutchins_0-1750701137720.png" alt="KellyHutchins_0-1750701137720.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KellyHutchins_2-1750701190742.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134853i2417C44E3D6D3529/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KellyHutchins_2-1750701190742.png" alt="KellyHutchins_2-1750701190742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 17:54:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1625842#M65172</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2025-06-23T17:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create an expand/collapse section in Map Viewer popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1626107#M65180</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/491"&gt;@KellyHutchins&lt;/a&gt;, thanks for the tip.&amp;nbsp; I had no idea about the details/summary element in HTML.&amp;nbsp; I got it to work fine in the Web Map, although when I use the map in a Dashboard the expand/collapse arrow is not displayed, but I presume that's down to some CSS in ArcGIS Dashboards that I can't (easily) access:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MappyIan_1-1750760193791.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134915i43C2C8503652DDEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MappyIan_1-1750760193791.png" alt="MappyIan_1-1750760193791.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MappyIan_2-1750760219070.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134916iC295276229F1A886/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MappyIan_2-1750760219070.png" alt="MappyIan_2-1750760219070.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm happy this is working well enough in the Dashboard even without the expand/collapse arrow.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MappyIan_3-1750760316237.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134917iFC32A65E671FC4AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MappyIan_3-1750760316237.png" alt="MappyIan_3-1750760316237.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 10:19:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1626107#M65180</guid>
      <dc:creator>MappyIan</dc:creator>
      <dc:date>2025-06-24T10:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create an expand/collapse section in Map Viewer popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1626264#M65188</link>
      <description>&lt;P&gt;&amp;nbsp;You might be able to get the arrow to show by modifying the popup html a bit. Here's what worked for me in dashboard. I added style="display:revert;" to overwrite a dashboard style applied to the summary element.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;details&amp;gt;
    &amp;lt;summary style="display:revert;"&amp;gt;Drop Box Location:&amp;lt;/summary&amp;gt;
    &amp;lt;p&amp;gt;
       {fulladdr}
    &amp;lt;/p&amp;gt;
&amp;lt;/details&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 16:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1626264#M65188</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2025-06-24T16:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create an expand/collapse section in Map Viewer popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1626557#M65195</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/491"&gt;@KellyHutchins&lt;/a&gt;, that worked a treat.&amp;nbsp; Here's how it looks in the Dashboard now:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MappyIan_0-1750840106021.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135032i2664283446AA3C20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MappyIan_0-1750840106021.png" alt="MappyIan_0-1750840106021.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks again - Ian&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 08:28:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1626557#M65195</guid>
      <dc:creator>MappyIan</dc:creator>
      <dc:date>2025-06-25T08:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create an expand/collapse section in Map Viewer popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1699148#M68558</link>
      <description>&lt;P&gt;I'm trying to get this working in the web map in Portal 11.3, but it's just showing as plain text. Any idea if there are any CSS properties that could be updated to make this work in that interface too?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2026 19:15:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1699148#M68558</guid>
      <dc:creator>JohnNergeBrooklynPark</dc:creator>
      <dc:date>2026-04-29T19:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create an expand/collapse section in Map Viewer popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1699243#M68563</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/269604"&gt;@JohnNergeBrooklynPark&lt;/a&gt;.&amp;nbsp; I was doing this in an ARCADE content block in the popup as I wanted to pull in various attribute value etc. etc.&amp;nbsp; I presume you're doing it in a different type of content block?&amp;nbsp; I was going to point you at the Web Map that&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/491"&gt;@KellyHutchins&lt;/a&gt;&amp;nbsp;links to but I see it's not working anymore as you could just copy the code from there.&lt;/P&gt;&lt;P&gt;I just created the following map that has an expanding/collapsing section in it:&amp;nbsp;&lt;A href="https://arcg.is/1HDbD91" target="_blank"&gt;https://arcg.is/1HDbD91&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code in the ARCADE content block in the popup is included below for ease.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;returnhtml&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;returnhtml&lt;/SPAN&gt;&lt;SPAN&gt; += &lt;/SPAN&gt;&lt;SPAN&gt;'&amp;lt;details&amp;gt;&amp;lt;summary&amp;gt;'&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;' [click to expand]&amp;lt;/summary&amp;gt;'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;returnhtml&lt;/SPAN&gt;&lt;SPAN&gt; += &lt;/SPAN&gt;&lt;SPAN&gt;'&amp;lt;p&amp;gt;'&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;display_address&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;'&amp;lt;/p&amp;gt;'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;returnhtml&lt;/SPAN&gt;&lt;SPAN&gt; += &lt;/SPAN&gt;&lt;SPAN&gt;'&amp;lt;/details&amp;gt;'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;SPAN&gt;'text'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;SPAN&gt;returnhtml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Apr 2026 09:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-an-expand-collapse-section-in-map-viewer/m-p/1699243#M68563</guid>
      <dc:creator>MappyIan</dc:creator>
      <dc:date>2026-04-30T09:22:19Z</dc:date>
    </item>
  </channel>
</rss>

