<?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 Using URL Parameters in ArcGIS Online in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/using-url-parameters-in-arcgis-online/m-p/1559680#M1504</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I have a dashboard that is typically opened from a primary dashboard. The workflow is that a user filters for a single item on the primary dashboard, which provides them with a link to the sub-dashboard. I want to use URL parameters such that when, for example, the user selects itemID = 123, and is provided a link to the sub-dashboard, when they open the link, this second dashboard automatically filters for itemID=123, changing the map extent and only including that item in the list widget.&lt;/P&gt;&lt;P&gt;I've tried doing so according to what I've read at this &lt;A href="https://doc.arcgis.com/en/dashboards/latest/create-and-share/configuring-actions-on-url-parameters.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;link&lt;/A&gt; by adding filters to both the primary and sub dashboards. However, I can't figure out how to actually add the parameters to the end of the URL as outlined on this &lt;A href="https://doc.arcgis.com/en/dashboards/latest/create-and-share/url-parameters.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;page&lt;/A&gt;. Is this possible in ArcGIS Online?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 18 Nov 2024 15:09:15 GMT</pubDate>
    <dc:creator>jchadwich1</dc:creator>
    <dc:date>2024-11-18T15:09:15Z</dc:date>
    <item>
      <title>Using URL Parameters in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/using-url-parameters-in-arcgis-online/m-p/1559680#M1504</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I have a dashboard that is typically opened from a primary dashboard. The workflow is that a user filters for a single item on the primary dashboard, which provides them with a link to the sub-dashboard. I want to use URL parameters such that when, for example, the user selects itemID = 123, and is provided a link to the sub-dashboard, when they open the link, this second dashboard automatically filters for itemID=123, changing the map extent and only including that item in the list widget.&lt;/P&gt;&lt;P&gt;I've tried doing so according to what I've read at this &lt;A href="https://doc.arcgis.com/en/dashboards/latest/create-and-share/configuring-actions-on-url-parameters.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;link&lt;/A&gt; by adding filters to both the primary and sub dashboards. However, I can't figure out how to actually add the parameters to the end of the URL as outlined on this &lt;A href="https://doc.arcgis.com/en/dashboards/latest/create-and-share/url-parameters.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;page&lt;/A&gt;. Is this possible in ArcGIS Online?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Nov 2024 15:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/using-url-parameters-in-arcgis-online/m-p/1559680#M1504</guid>
      <dc:creator>jchadwich1</dc:creator>
      <dc:date>2024-11-18T15:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using URL Parameters in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/using-url-parameters-in-arcgis-online/m-p/1559709#M1505</link>
      <description>&lt;P&gt;How are you providing the link? I'm assuming it will be via a List element. Just build the link in the list template, and use the field reference for the field used in your dashboard parameter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To create a hyperlink, just copy the link (w/ the field reference). Add your hyperlink text, highlight it, and click the link icon. Then paste your link into the box. You can then delete the original link.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JenniferAcunto_0-1731944616655.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119754i2DB02F0D97ABB539/image-size/large?v=v2&amp;amp;px=999" role="button" title="JenniferAcunto_0-1731944616655.png" alt="JenniferAcunto_0-1731944616655.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using a field in your parameters that has spaces or special characters in it, you will need to use Arcade the encode the URL.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var url = 'https://portalurl/apps/dashboards/df286b3e14f64960ba7c84e29451a98a#p2='

var field = UrlEncode($datapoint.Volcano_Name)

var url2 = Concatenate(url, field)

return {
  textColor: '',
  backgroundColor: '',
  separatorColor:'',
  selectionColor: '',
  selectionTextColor: '',
  attributes: {
    url2: url2
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This time, you would just reference the expression variable for your hyperlink.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JenniferAcunto_1-1731944862321.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119755iF21CAB402FBD4119/image-size/large?v=v2&amp;amp;px=999" role="button" title="JenniferAcunto_1-1731944862321.png" alt="JenniferAcunto_1-1731944862321.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 15:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/using-url-parameters-in-arcgis-online/m-p/1559709#M1505</guid>
      <dc:creator>JenniferAcunto</dc:creator>
      <dc:date>2024-11-18T15:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using URL Parameters in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/using-url-parameters-in-arcgis-online/m-p/1559738#M1506</link>
      <description>&lt;P&gt;You're correct, I am adding the links within the list widget. This looks like exactly what I was looking for, I'm going to test it out now.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 16:35:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/using-url-parameters-in-arcgis-online/m-p/1559738#M1506</guid>
      <dc:creator>jchadwich1</dc:creator>
      <dc:date>2024-11-18T16:35:27Z</dc:date>
    </item>
  </channel>
</rss>

