<?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: custom attribute display using YEAR as part of URL in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/custom-attribute-display-using-year-as-part-of-url/m-p/1130499#M43609</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="uosl_0-1641323160413.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30739iB7AD78DBA4A2B250/image-size/medium?v=v2&amp;amp;px=400" role="button" title="uosl_0-1641323160413.png" alt="uosl_0-1641323160413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Click "Add" under "Attribute Expressions" on the "configure popup" panel.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jan 2022 19:07:01 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2022-01-04T19:07:01Z</dc:date>
    <item>
      <title>custom attribute display using YEAR as part of URL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-attribute-display-using-year-as-part-of-url/m-p/1130382#M43600</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a web app we've been using for years now and every year we have to go in to the URL properties of the custom attribute display and change the URL of a link to reflect the new year.&lt;/P&gt;&lt;P&gt;Ideally we can use the current year but I have no idea how to incorporate that as any code I try to put in the LINK properties shows up as text in the URL rather than returning the year.&lt;/P&gt;&lt;P&gt;Is there a way to access the current year in the URL field of a link in a custom attribute display?&lt;/P&gt;&lt;P&gt;In the URL below I hacked and tried adding javascript like Date.getFullYear() but it adds that to the URL string rather than running code to return current year.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KearyLarson2_0-1641313610569.png" style="width: 554px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30714iCCDBA05CEBBAF22B/image-dimensions/554x317?v=v2" width="554" height="317" role="button" title="KearyLarson2_0-1641313610569.png" alt="KearyLarson2_0-1641313610569.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 16:30:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-attribute-display-using-year-as-part-of-url/m-p/1130382#M43600</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-04T16:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: custom attribute display using YEAR as part of URL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-attribute-display-using-year-as-part-of-url/m-p/1130387#M43602</link>
      <description>&lt;P&gt;Try creating a custom popup expression:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Year(Now())&lt;/LI-CODE&gt;&lt;P&gt;And then piping that expression into your popup.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 16:41:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-attribute-display-using-year-as-part-of-url/m-p/1130387#M43602</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-04T16:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: custom attribute display using YEAR as part of URL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-attribute-display-using-year-as-part-of-url/m-p/1130491#M43608</link>
      <description>&lt;P&gt;Where do I create the custom popup expression?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 19:01:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-attribute-display-using-year-as-part-of-url/m-p/1130491#M43608</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-04T19:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: custom attribute display using YEAR as part of URL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-attribute-display-using-year-as-part-of-url/m-p/1130499#M43609</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="uosl_0-1641323160413.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30739iB7AD78DBA4A2B250/image-size/medium?v=v2&amp;amp;px=400" role="button" title="uosl_0-1641323160413.png" alt="uosl_0-1641323160413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Click "Add" under "Attribute Expressions" on the "configure popup" panel.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 19:07:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-attribute-display-using-year-as-part-of-url/m-p/1130499#M43609</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-04T19:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: custom attribute display using YEAR as part of URL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-attribute-display-using-year-as-part-of-url/m-p/1130500#M43610</link>
      <description>&lt;P&gt;Thanks. This app is currently on a server with an older version of portal and unfortunately the popup dialog doesn't show attribute expressions. That would be the way to do it though. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KearyLarson2_0-1641323540689.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30740i0266276682C01D8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KearyLarson2_0-1641323540689.png" alt="KearyLarson2_0-1641323540689.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 19:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-attribute-display-using-year-as-part-of-url/m-p/1130500#M43610</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-04T19:12:27Z</dc:date>
    </item>
  </channel>
</rss>

