<?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 Trying to convert Arcade script from AGOL to ArcGIS popup in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-arcade-script-from-agol-to/m-p/1339346#M74118</link>
    <description>&lt;P&gt;I am trying to convert my Arcade script from an AGOL popup attribute to use in ArcGIS Pro popup configuration, to no avail:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"&lt;A href="https://webaddress=pDetail&amp;amp;pKEY=" target="_blank"&gt;https://webaddress=pDetail&amp;amp;pKEY=&lt;/A&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;"ASSESSED_G"&lt;/SPAN&gt;&lt;SPAN&gt;] + &lt;/SPAN&gt;&lt;SPAN&gt;")"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 18 Oct 2023 20:59:29 GMT</pubDate>
    <dc:creator>BarryG</dc:creator>
    <dc:date>2023-10-18T20:59:29Z</dc:date>
    <item>
      <title>Trying to convert Arcade script from AGOL to ArcGIS popup</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-arcade-script-from-agol-to/m-p/1339346#M74118</link>
      <description>&lt;P&gt;I am trying to convert my Arcade script from an AGOL popup attribute to use in ArcGIS Pro popup configuration, to no avail:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"&lt;A href="https://webaddress=pDetail&amp;amp;pKEY=" target="_blank"&gt;https://webaddress=pDetail&amp;amp;pKEY=&lt;/A&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;"ASSESSED_G"&lt;/SPAN&gt;&lt;SPAN&gt;] + &lt;/SPAN&gt;&lt;SPAN&gt;")"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Oct 2023 20:59:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-arcade-script-from-agol-to/m-p/1339346#M74118</guid>
      <dc:creator>BarryG</dc:creator>
      <dc:date>2023-10-18T20:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to convert Arcade script from AGOL to ArcGIS popup</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-arcade-script-from-agol-to/m-p/1339386#M74122</link>
      <description>&lt;P&gt;The quotes are causing the problem&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;'https://webaddress=pDetail&amp;amp;pKEY=(' + $feature["ASSESSED_G"] + ')'
//or using template literals
`https://webaddress=pDetail&amp;amp;pKEY=(${$feature["ASSESSED_G"]})`&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 Oct 2023 22:00:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-arcade-script-from-agol-to/m-p/1339386#M74122</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-10-18T22:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to convert Arcade script from AGOL to ArcGIS popup</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-arcade-script-from-agol-to/m-p/1339548#M74164</link>
      <description>&lt;P&gt;Thank you Ken. This is what I have found worked in the Arcade popup option:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;return { 
   type : 'text', 
   text : '&amp;lt;a href="https://keyweb.pittgov.net/WebPAAS/?DEST=pDetail&amp;amp;pKEY=' + $feature['ASSESSED_G'] + '"&amp;gt;' + 'Property record: ' + $feature['ASSESSED_G'] + '&amp;lt;/a&amp;gt;'
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 15:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-arcade-script-from-agol-to/m-p/1339548#M74164</guid>
      <dc:creator>BarryG</dc:creator>
      <dc:date>2023-10-19T15:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to convert Arcade script from AGOL to ArcGIS popup</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-arcade-script-from-agol-to/m-p/1339560#M74166</link>
      <description>&lt;P&gt;You need to add the html tags to make it clickable. Note that you still have the quotes clashing. Since you have to put the URL in yet another set of quotes, it's easier to use &lt;A href="https://developers.arcgis.com/arcade/guide/template-literals/" target="_self"&gt;template literals&lt;/A&gt; and the back tick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return { 
  type : 'text', 
  text : `&amp;lt;a href="https://keyweb.pittgov.net/WebPAAS/?DEST=pDetail&amp;amp;pKEY=(${$feature['ASSESSED_G']})"&amp;gt;${$feature['ASSESSED_G']}&amp;lt;/a&amp;gt;`
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 14:10:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-arcade-script-from-agol-to/m-p/1339560#M74166</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-10-19T14:10:21Z</dc:date>
    </item>
  </channel>
</rss>

