<?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: How can I insert HTML code into a popup using an arcade expression in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1260193#M6502</link>
    <description>&lt;P&gt;Thanks Josh for the tips.&amp;nbsp; Yes the work around is less than ideal.&amp;nbsp; I can't wait until being able to use the popupElement.&amp;nbsp; I'm new to arcgis programming and haven't dabbled in dashboards yet.&amp;nbsp; &amp;nbsp;Can't wait to get into that either.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 19:06:32 GMT</pubDate>
    <dc:creator>KhoaPham_AWWD</dc:creator>
    <dc:date>2023-02-21T19:06:32Z</dc:date>
    <item>
      <title>How can I insert HTML code into a popup using an arcade expression</title>
      <link>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1259591#M6498</link>
      <description>&lt;P&gt;I'm having trouble inserting HTML code in an arcade expression in the Map Viewer popup configuration and have the HTML code be processed not as a text string.&amp;nbsp; I'm using template literals rather than single quotes around the HTML code.&amp;nbsp; However, the Map Viewer interpreter does not process the value like the javascript interpreter does and displays the HTML as text in the popup window.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KhoaPham_0-1676671770210.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63172i2F88C25E1A502490/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KhoaPham_0-1676671770210.png" alt="KhoaPham_0-1676671770210.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="KhoaPham_1-1676672778500.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63173i1329DB98636CD8FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KhoaPham_1-1676672778500.png" alt="KhoaPham_1-1676672778500.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I read this post&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/arcade-expression-correct-but-doesn-t-show-up-in/m-p/1240075#M49289" target="_blank"&gt;Solved: Arcade expression correct but doesn't show up in p... - Esri Community&lt;/A&gt; where it is mentioned that there are two types of arcade you can configure in the popup window, arcade expression and arcade element.&amp;nbsp; Here's the image showing the two in the post and that you can add an arcade element using the "+ Add content" button, then "&amp;lt;/&amp;gt; Arcade"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KhoaPham_2-1676673157291.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63174iBA1107A23174AB0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KhoaPham_2-1676673157291.png" alt="KhoaPham_2-1676673157291.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I'm not seeing that "&amp;lt;/&amp;gt; Arcade" option when I go to add it.&amp;nbsp; I'm using Enterprise 10.9.1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what version is that arcade element option available?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, why wouldn't the expression work?&amp;nbsp; I figure that the Map Viewer wouldn't interpret it as vannila javascript would and that is understandable, but is there another way to use arcade expression and still get injected HTML code to display correctly?&lt;/P&gt;&lt;P&gt;Appreciate any help you can give.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 22:40:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1259591#M6498</guid>
      <dc:creator>KhoaPham</dc:creator>
      <dc:date>2023-02-17T22:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert HTML code into a popup using an arcade expression</title>
      <link>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1259594#M6499</link>
      <description>&lt;P&gt;Yeah, the Arcade element isn't available until 11.0, so you can't do it yet.&lt;/P&gt;&lt;P&gt;The next best thing is to configure your popup to have HTML, then use an Arcade expression to fill in parts of it.&lt;/P&gt;&lt;PRE&gt;&amp;lt;a href="{expression/URL_expression}"&amp;gt;Click Here to see {expression/text_expression}!&amp;lt;/a&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 22:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1259594#M6499</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-02-17T22:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert HTML code into a popup using an arcade expression</title>
      <link>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1259600#M6500</link>
      <description>&lt;P&gt;Thanks Josh for the prompt response.&lt;/P&gt;&lt;P&gt;That's what I had to resort to.&amp;nbsp; What I'm really trying to do is to build an HTML block of table,rows,columns tags that is embedded with a dataset returned by a FeatureSetBy... function in the arcade.&amp;nbsp;&amp;nbsp;Unfortunately though since the {expression/expr#} embedded in the HTML can only be single values I'm not able to accomplish this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to do this in a custom web map without issue.&amp;nbsp; &amp;nbsp;So then there is no way to do what I'm trying to do using the Map Viewer popup configuration tool without upgrading to 11.0?&amp;nbsp; Do you know if the arcade element option is available with ArcGIS Online?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 23:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1259600#M6500</guid>
      <dc:creator>KhoaPham</dc:creator>
      <dc:date>2023-02-17T23:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert HTML code into a popup using an arcade expression</title>
      <link>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1259610#M6501</link>
      <description>&lt;P&gt;It's in AGOL, yes.&lt;/P&gt;&lt;P&gt;Depending on what you're trying to do, though, you can still get some pretty intense popups with the 10.9.1 capabilities. But any time there's something dynamic, you'll need a &lt;EM&gt;separate&lt;/EM&gt; Arcade expression. So if you wanted a table with dynamic font, background color, and visibility, that could be 6+ separate expressions per row of the table.&lt;/P&gt;&lt;P&gt;What about a Dashboard? Even in 10.9.1, there's still a fair bit you can do with Arcade in a dashboard List element.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 00:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1259610#M6501</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-02-18T00:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert HTML code into a popup using an arcade expression</title>
      <link>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1260193#M6502</link>
      <description>&lt;P&gt;Thanks Josh for the tips.&amp;nbsp; Yes the work around is less than ideal.&amp;nbsp; I can't wait until being able to use the popupElement.&amp;nbsp; I'm new to arcgis programming and haven't dabbled in dashboards yet.&amp;nbsp; &amp;nbsp;Can't wait to get into that either.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 19:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1260193#M6502</guid>
      <dc:creator>KhoaPham_AWWD</dc:creator>
      <dc:date>2023-02-21T19:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert HTML code into a popup using an arcade expression</title>
      <link>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1336524#M6787</link>
      <description>&lt;P&gt;If You're using Your own hosted ArcGIS JavaScript API and You don't want to split Arcade expressions, You can also remove the HTML element sanitizer mechanism completely.&lt;/P&gt;&lt;P&gt;For v. 4.27, just modify the \esri\widgets\Popup.js from:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;p.htmlEntities=function(M){return M.replaceAll(k,ja=&amp;gt;`&amp;amp;#${ja.charCodeAt(0)};`)};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;to:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;p.htmlEntities=function(M){return M};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This will allow any HTML elements in the feature popup.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 12:32:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-can-i-insert-html-code-into-a-popup-using-an/m-p/1336524#M6787</guid>
      <dc:creator>StefanUseldinger</dc:creator>
      <dc:date>2023-10-10T12:32:58Z</dc:date>
    </item>
  </channel>
</rss>

