<?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: Add Option in Map Pop-up to Turn on Another Layer in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/add-option-in-map-pop-up-to-turn-on-another-layer/m-p/1607373#M18542</link>
    <description>&lt;P&gt;You definitely can create a custom popup widget to do this. Generally speaking, you'd want to create a popup widget that:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Reads in the default popup template that's set on you feature layers&lt;/LI&gt;&lt;LI&gt;Create a&amp;nbsp;&lt;SPAN&gt;popup template action with the 'button' type&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Attach the button id to a function that does what you want (i.e. takes the layer id of a layer you want to be made visible, and sets the layer visibility to true)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;I've done similar work creating custom popups with custom buttons/actions that do several other things (not setting layer visibility) but I'm 100% confident it can be done. The one drawback is that IMHO creating custom popup widgets for Experience Builder is not for the faint of heart lol&lt;BR /&gt;&lt;BR /&gt;I'd recommend looking at these links:&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/intro-popuptemplate/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/intro-popuptemplate/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/popup-actions/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/popup-actions/&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Apr 2025 17:38:47 GMT</pubDate>
    <dc:creator>AndreLoerch</dc:creator>
    <dc:date>2025-04-18T17:38:47Z</dc:date>
    <item>
      <title>Add Option in Map Pop-up to Turn on Another Layer</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/add-option-in-map-pop-up-to-turn-on-another-layer/m-p/1606771#M18514</link>
      <description>&lt;P class=""&gt;I'm working with an Experience Builder app that includes a map with two main layers:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;HC_footprints_... – a polygon layer containing various construction project records&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Georeferenced Imagery – a group layer that includes georeferenced PDFs and CAD files, including one specific PDF titled PDF_SK_1G...&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;&lt;FONT size="3"&gt;What I’m trying to do:&lt;/FONT&gt;&lt;/H3&gt;&lt;P class=""&gt;When a user clicks on a specific polygon in the HC_footprints_... layer, a pop-up appears. Within that pop-up, I want to add a button (or similar option) that, when clicked, will turn on the corresponding PDF layer from the Georeferenced Imagery group layer.&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;If I cannot do it in a pop-up I believe it can be accomplished with a List, Button, or Feature widget, but I cannot figure out how to link everything.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-04-16 155848.png" style="width: 544px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/130420i8B32919AE2406EB9/image-dimensions/544x203?v=v2" width="544" height="203" role="button" title="Screenshot 2025-04-16 155848.png" alt="Screenshot 2025-04-16 155848.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screenshot 2025-04-16 155848.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For example, in the image above, I’ve clicked on a project titled HC from the HC_footprints_... layer. I want a button or interactive element in the pop-up that will automatically turn on the PDF_SK_1G... layer so the user doesn’t need to manually go into the Contents panel to find and toggle it. &lt;STRONG&gt;Like I said above, if a popup cannot be used, how can I set up a list or a button widget to it? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This would streamline the user experience by allowing direct control of the PDF visibility from the pop-up itself.&lt;/P&gt;&lt;P&gt;I cannot figure out if I need to build something into the Pop-up window in Map Viewer or if there is a widget in Experience Builder that will do this. The Embed option just opens the PDF in a new window but does not turn the PDF on.&lt;/P&gt;&lt;P&gt;Any assistance would be appreciated. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 01:35:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/add-option-in-map-pop-up-to-turn-on-another-layer/m-p/1606771#M18514</guid>
      <dc:creator>MHO_Harbors</dc:creator>
      <dc:date>2025-04-18T01:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add Option in Map Pop-up to Turn on Another Layer</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/add-option-in-map-pop-up-to-turn-on-another-layer/m-p/1607373#M18542</link>
      <description>&lt;P&gt;You definitely can create a custom popup widget to do this. Generally speaking, you'd want to create a popup widget that:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Reads in the default popup template that's set on you feature layers&lt;/LI&gt;&lt;LI&gt;Create a&amp;nbsp;&lt;SPAN&gt;popup template action with the 'button' type&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Attach the button id to a function that does what you want (i.e. takes the layer id of a layer you want to be made visible, and sets the layer visibility to true)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;I've done similar work creating custom popups with custom buttons/actions that do several other things (not setting layer visibility) but I'm 100% confident it can be done. The one drawback is that IMHO creating custom popup widgets for Experience Builder is not for the faint of heart lol&lt;BR /&gt;&lt;BR /&gt;I'd recommend looking at these links:&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/intro-popuptemplate/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/intro-popuptemplate/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/popup-actions/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/popup-actions/&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 17:38:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/add-option-in-map-pop-up-to-turn-on-another-layer/m-p/1607373#M18542</guid>
      <dc:creator>AndreLoerch</dc:creator>
      <dc:date>2025-04-18T17:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add Option in Map Pop-up to Turn on Another Layer</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/add-option-in-map-pop-up-to-turn-on-another-layer/m-p/1608276#M18589</link>
      <description>&lt;P&gt;Ok, thank you. I guess we'll need the Developer's Edition. I might ask ESRI how to to this at the UC in July.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 20:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/add-option-in-map-pop-up-to-turn-on-another-layer/m-p/1608276#M18589</guid>
      <dc:creator>MHO_Harbors</dc:creator>
      <dc:date>2025-04-22T20:45:33Z</dc:date>
    </item>
  </channel>
</rss>

