<?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: Hyperlinks for different features in same layer AGOL in State &amp; Local Government Questions</title>
    <link>https://community.esri.com/t5/state-local-government-questions/hyperlinks-for-different-features-in-same-layer/m-p/45351#M299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to take care of this with Arcade expressions. Depending on how the data is set up, the expressions would be of varying complexity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have the subdivision information in the data, you can simply run that value in an if/then/else expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (subdivision_number == 1){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return URL_1&lt;/P&gt;&lt;P&gt;}else if (subdivision_number == 2){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return URL_2&lt;/P&gt;&lt;P&gt;}else if( subdivision_number == 3){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return URL_3&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the subdivision is stored in another layer (it sounds like this is your set up), you can simply pull it with a intersection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var intersecting_division = Intersects ($feature, subdivision_feature)&lt;/P&gt;&lt;P&gt;if (&lt;SPAN&gt;intersecting_division.subdivision_number&amp;nbsp;&lt;/SPAN&gt;== 1){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return URL_1&lt;/P&gt;&lt;P&gt;}else if (&lt;SPAN&gt;intersecting_division.subdivision_number&amp;nbsp;&lt;/SPAN&gt;== 2){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return URL_2&lt;/P&gt;&lt;P&gt;}else if( &lt;SPAN&gt;intersecting_division.subdivision_number&amp;nbsp;&lt;/SPAN&gt;== 3){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return URL_3&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What ever you return as the URLs you can then just set as a hyperlink in the pop-up. You can also built the URL within the arcade if you need more variants, such as a specific feature's plans or permits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2019 19:36:00 GMT</pubDate>
    <dc:creator>AndyShoemaker</dc:creator>
    <dc:date>2019-12-02T19:36:00Z</dc:date>
    <item>
      <title>Hyperlinks for different features in same layer AGOL</title>
      <link>https://community.esri.com/t5/state-local-government-questions/hyperlinks-for-different-features-in-same-layer/m-p/45350#M298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In AGOL,I would like to be able to create hyperlinks from a layer's pop-up.&amp;nbsp;I would like to be able to have different links for different features, but all these features are within the same layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My situation - I have a "Subdivision Phase" polygon layer for the whole city, say 100 features in all, with say, 10 different subdivisions. So 10 features for Subdivision 1, 10 features for Subdivision 2, etc...When a user clicks on a pop-up for a feature in Subdivision 1, I would like them&amp;nbsp;to be able to click a link to Subdivision 1's original plans. A Subdivision 2 feature they can click link to Subdivision 2 plans, and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can easily just make the subdivisions into different layers and tackle it that way, but I foresee myself having to do this type of thing often. Any advice out there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2019 20:25:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/hyperlinks-for-different-features-in-same-layer/m-p/45350#M298</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-11-27T20:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinks for different features in same layer AGOL</title>
      <link>https://community.esri.com/t5/state-local-government-questions/hyperlinks-for-different-features-in-same-layer/m-p/45351#M299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to take care of this with Arcade expressions. Depending on how the data is set up, the expressions would be of varying complexity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have the subdivision information in the data, you can simply run that value in an if/then/else expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (subdivision_number == 1){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return URL_1&lt;/P&gt;&lt;P&gt;}else if (subdivision_number == 2){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return URL_2&lt;/P&gt;&lt;P&gt;}else if( subdivision_number == 3){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return URL_3&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the subdivision is stored in another layer (it sounds like this is your set up), you can simply pull it with a intersection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var intersecting_division = Intersects ($feature, subdivision_feature)&lt;/P&gt;&lt;P&gt;if (&lt;SPAN&gt;intersecting_division.subdivision_number&amp;nbsp;&lt;/SPAN&gt;== 1){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return URL_1&lt;/P&gt;&lt;P&gt;}else if (&lt;SPAN&gt;intersecting_division.subdivision_number&amp;nbsp;&lt;/SPAN&gt;== 2){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return URL_2&lt;/P&gt;&lt;P&gt;}else if( &lt;SPAN&gt;intersecting_division.subdivision_number&amp;nbsp;&lt;/SPAN&gt;== 3){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return URL_3&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What ever you return as the URLs you can then just set as a hyperlink in the pop-up. You can also built the URL within the arcade if you need more variants, such as a specific feature's plans or permits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 19:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/hyperlinks-for-different-features-in-same-layer/m-p/45351#M299</guid>
      <dc:creator>AndyShoemaker</dc:creator>
      <dc:date>2019-12-02T19:36:00Z</dc:date>
    </item>
  </channel>
</rss>

