<?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: Popup FieldsContent - using arcade to return url value for an attribute in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1184718#M77733</link>
    <description>&lt;P&gt;Can you change the expression to something like this?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var myUrl = 'https://test.com/' + $feature.ID
return `&amp;lt;a href="${myUrl}"&amp;gt;Click to learn more.&amp;lt;/a&amp;gt;`&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 21 Jun 2022 15:55:06 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2022-06-21T15:55:06Z</dc:date>
    <item>
      <title>Popup FieldsContent - using arcade to return url value for an attribute</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1184266#M77720</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are using a popup for one of our features with a FieldsContent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using an arcade expression for one of the fields. The expression returns a url calculated with a concatenated string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was a positive surprise that the API understands that it is a hyperlink and it creates an anchor element with the text "View" at the popup. The users can click on the anchor element and a new tab opens with the link.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a new request from our customer to change the text "View" on the hyperlink to whatever we want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;We tried to use arcade to return an anchor element correctly structured but with no luck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas are welcome!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 09:01:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1184266#M77720</guid>
      <dc:creator>MichailMarinakis1</dc:creator>
      <dc:date>2022-06-20T09:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Popup FieldsContent - using arcade to return url value for an attribute</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1184306#M77721</link>
      <description>&lt;P&gt;Here's an Esri blog post that shows how you can do exactly that! Arcade is amazing, ha.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/part-1-introducing-arcade-pop-up-content-elements/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/part-1-introducing-arcade-pop-up-content-elements/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 13:55:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1184306#M77721</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-06-20T13:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Popup FieldsContent - using arcade to return url value for an attribute</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1184643#M77728</link>
      <description>&lt;P&gt;Hi Rene,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the fast reply! I could not find an answer to neither part 1 (nor part 2) of the blog post above (nice read though &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our case, we have a popup with a fieldContent shown for a feature. The arcade expression for one of the fields is something like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return 'https://test.com/' + $feature.ID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result on the popup looks like that:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichailMarinakis1_0-1655815848398.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43924i4783FB1C4FE2EB36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichailMarinakis1_0-1655815848398.png" alt="MichailMarinakis1_0-1655815848398.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After inspecting the element, the value of this field is, magically, an anchor element with href the concatenated link above, and the word "View" as text. It's a welcome behavior actually!&lt;/P&gt;&lt;P&gt;Our question is:&lt;/P&gt;&lt;P&gt;Is there anyway to change the &lt;SPAN&gt;default value&amp;nbsp;&lt;/SPAN&gt;"View" somehow?&lt;/P&gt;&lt;P&gt;Could we return an anchor element as the value of a field ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 13:25:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1184643#M77728</guid>
      <dc:creator>MichailMarinakis1</dc:creator>
      <dc:date>2022-06-21T13:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Popup FieldsContent - using arcade to return url value for an attribute</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1184718#M77733</link>
      <description>&lt;P&gt;Can you change the expression to something like this?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var myUrl = 'https://test.com/' + $feature.ID
return `&amp;lt;a href="${myUrl}"&amp;gt;Click to learn more.&amp;lt;/a&amp;gt;`&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Jun 2022 15:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1184718#M77733</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-06-21T15:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Popup FieldsContent - using arcade to return url value for an attribute</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1184976#M77739</link>
      <description>&lt;P&gt;yeap, we did that:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichailMarinakis1_0-1655883378029.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43994i4DA5BFEC7A607E93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichailMarinakis1_0-1655883378029.png" alt="MichailMarinakis1_0-1655883378029.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can see a workaround, create a custom content that returns a table element (or returns a widget) with the proper structure for the whole FieldsContent. It's kind of an overkill, just for one attribute to generate a custom popup content. If there is no other way, we might go for that but I think it should be feasible with arcade somehow!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 07:45:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1184976#M77739</guid>
      <dc:creator>MichailMarinakis1</dc:creator>
      <dc:date>2022-06-22T07:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Popup FieldsContent - using arcade to return url value for an attribute</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1655913#M87699</link>
      <description>&lt;P&gt;Any follow up? I haven't been able to change the text either with the anchor tag?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 17:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1655913#M87699</guid>
      <dc:creator>sigccil</dc:creator>
      <dc:date>2025-10-07T17:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Popup FieldsContent - using arcade to return url value for an attribute</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1655916#M87700</link>
      <description>&lt;P&gt;Following this the link below worked however, I'm trying to write the expression from the popups where I go into a Fields List --&amp;gt; Select Fields --&amp;gt; Add Expression this adds a nested type and text return. My goal is to be able to change the name from the returned text from "View" to "Download." Is this possible from the steps I outlined?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-return-html-text/td-p/1315823" target="_blank"&gt;https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-return-html-text/td-p/1315823&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 17:22:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-fieldscontent-using-arcade-to-return-url/m-p/1655916#M87700</guid>
      <dc:creator>sigccil</dc:creator>
      <dc:date>2025-10-07T17:22:27Z</dc:date>
    </item>
  </channel>
</rss>

