<?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: Links in popups in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/links-in-popups/m-p/1625314#M19394</link>
    <description>&lt;P&gt;Thank you for the suggestion. An arcade element worked.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jun 2025 12:25:02 GMT</pubDate>
    <dc:creator>JasonSimpson</dc:creator>
    <dc:date>2025-06-20T12:25:02Z</dc:date>
    <item>
      <title>Links in popups</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/links-in-popups/m-p/1623064#M19275</link>
      <description>&lt;P&gt;I’m currently in the process of transitioning to Experience Builder for a popular application within our organization and encountering issues with the URL in a popup within the built-in map viewer.&lt;/P&gt;&lt;P&gt;To provide some context about the URL:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;It’s a URL that requires third-party access permissions, so our organization’s URL along with ArcGIS has been whitelisted.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The URL includes dynamic text based on a field value.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;A static version of this URL works fine when linked to a button in Experience Builder, but it doesn’t function properly within the popup.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Below is an example of the URL being used. Any suggestions or solutions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://www.organization.com/RealProperty/ThirdPartyAccess?countyId=00000&amp;amp;rpid={FIELDNAME}" target="_blank" rel="noopener"&gt;https://www.organization.com/RealProperty/ThirdPartyAccess?countyId=00000&amp;amp;rpid={FIELDNAME}&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/links-in-popups/m-p/1623064#M19275</guid>
      <dc:creator>JasonSimpson</dc:creator>
      <dc:date>2025-06-12T15:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Links in popups</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/links-in-popups/m-p/1623069#M19276</link>
      <description>&lt;P&gt;I had to migrate some code from WAB to EB, and below is a snippet of my Arcade (most may not be relevant to you, but the last else may be). The workflow I use is is to add an Arcade element to the pop-up.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;// Function to format URL fields
function formatURL(label, value) {
    var lowerValue = Lower(Text(value));
    
    // Handle Trimview and other special cases
    if (Left(lowerValue, 4) == "map/" || Left(lowerValue, 4) == "poa/" || Left(lowerValue, 4) == "ord/" || Left(lowerValue, 4) == "phot" || Left(lowerValue, 4) == "fldr" || Left(lowerValue, 4) == "ldoc") {
        return "&amp;lt;b&amp;gt;" + label + ":&amp;lt;/b&amp;gt; &amp;lt;a target='_blank' href='http://your.org.com/?=" + value + "'&amp;gt;Click here for more info.&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;";
    } else if (Left(lowerValue, 7) == "http://" || Left(lowerValue, 8) == "https://") {
        return "&amp;lt;b&amp;gt;" + label + ":&amp;lt;/b&amp;gt; &amp;lt;a target='_blank' href='" + value + "'&amp;gt;Click here for more info.&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;";
    } else if (Right(lowerValue, 4) == ".pdf" || Right(lowerValue, 5) == ".xlsx") {
        // Handle PDF and Excel (.xlsx) files
        return "&amp;lt;b&amp;gt;" + label + ":&amp;lt;/b&amp;gt; &amp;lt;a target='_blank' href='http://your.org.com/" + value + "'&amp;gt;Click here for more info.&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;";
    } else if (Find("pavement\\", lowerValue) != -1) {
        // Handle cases where URL is like "pavement\pavement2022\..."
        return "&amp;lt;b&amp;gt;" + label + ":&amp;lt;/b&amp;gt; &amp;lt;a target='_blank' href='https://your.org.com/" + value + "'&amp;gt;Click here for more info.&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;";
    } else if (Find("resdoc/", lowerValue) != -1) {
        // Handle cases where URL is like "resdoc/6200"
        return "&amp;lt;b&amp;gt;" + label + ":&amp;lt;/b&amp;gt; &amp;lt;a target='_blank' href='https://your.org.com/" + value + "'&amp;gt;Click here for more info.&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;";
    } else {
        // Fallback to URL format for any other URL-like fields
        return "&amp;lt;b&amp;gt;" + label + ":&amp;lt;/b&amp;gt; &amp;lt;a target='_blank' href='http://your.org.com/" + value + "'&amp;gt;Click here for more info.&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;";
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brian_McLeer_0-1749740945469.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134279iC6C1CF3B3A2A365F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Brian_McLeer_0-1749740945469.png" alt="Brian_McLeer_0-1749740945469.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:13:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/links-in-popups/m-p/1623069#M19276</guid>
      <dc:creator>Brian_McLeer</dc:creator>
      <dc:date>2025-06-12T15:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Links in popups</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/links-in-popups/m-p/1624819#M19343</link>
      <description>&lt;P&gt;You can use an Arcade content block like above, or you can create the URLs with an Arcade attribute expression. You don't state how you're currently creating the URLs, so I'm guessing that you're entering the URL like this?:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NicoleJohnson_0-1750277910453.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134586i4FA914BFF6A700AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NicoleJohnson_0-1750277910453.png" alt="NicoleJohnson_0-1750277910453.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For the same use case, here's what I've done:&lt;/P&gt;&lt;P&gt;Add a text content block to your pop-up (if you don't already have one). Create an Arcade attribute expression. Whatever the static part of the URL is, put that in quotes, then concatenate the dynamic field info:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NicoleJohnson_1-1750278116830.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134587iE3DF413EC1EAF05D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NicoleJohnson_1-1750278116830.png" alt="NicoleJohnson_1-1750278116830.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then, go back to the text content block and enter the expression number as the URL:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NicoleJohnson_2-1750278596509.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134589i59CE4589006DB1BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NicoleJohnson_2-1750278596509.png" alt="NicoleJohnson_2-1750278596509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 20:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/links-in-popups/m-p/1624819#M19343</guid>
      <dc:creator>NicoleJohnson</dc:creator>
      <dc:date>2025-06-18T20:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Links in popups</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/links-in-popups/m-p/1625313#M19393</link>
      <description>&lt;P&gt;Thank you. I indeed created an arcade expression with the dynamic field being a var.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 12:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/links-in-popups/m-p/1625313#M19393</guid>
      <dc:creator>JasonSimpson</dc:creator>
      <dc:date>2025-06-20T12:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Links in popups</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/links-in-popups/m-p/1625314#M19394</link>
      <description>&lt;P&gt;Thank you for the suggestion. An arcade element worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 12:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/links-in-popups/m-p/1625314#M19394</guid>
      <dc:creator>JasonSimpson</dc:creator>
      <dc:date>2025-06-20T12:25:02Z</dc:date>
    </item>
  </channel>
</rss>

