<?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: Pop-up Expression in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626766#M42513</link>
    <description>&lt;P&gt;I just realized why! Thanks for your help&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2025 18:57:30 GMT</pubDate>
    <dc:creator>Seyed-MahdySadraddini</dc:creator>
    <dc:date>2025-06-25T18:57:30Z</dc:date>
    <item>
      <title>Pop-up Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626673#M42496</link>
      <description>&lt;P&gt;I have looked at several examples of arcade expressions, and have read the ESRI developer manuals online to figure out how to display fields conditionally in popups on ArcGIS Enterprise.&lt;/P&gt;&lt;P&gt;I would like to display 2 fields on the popup in a webmap. If my province code is greater than 59, I want to display fields x12 and x10. Else, I would like to display fields y6 and y4. So, I am trying to display different fields based on the value of another field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a psuedo-arcade code that does not work! I understand the return statement is not correct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;prov&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;province_code&lt;/SPAN&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&lt;/SPAN&gt; &lt;SPAN&gt;field1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;field2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Would you please help me re-write this code so it works!&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Jun 2025 14:31:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626673#M42496</guid>
      <dc:creator>Seyed-MahdySadraddini</dc:creator>
      <dc:date>2025-06-25T14:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626681#M42497</link>
      <description>&lt;P&gt;This solution uses&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/guide/template-literals/" target="_self"&gt;template literals&lt;/A&gt;&amp;nbsp;and an &lt;A href="https://developers.arcgis.com/arcade/guide/return/#implicit-returns" target="_self"&gt;implicit return&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;IIf(
  $feature.province_code &amp;gt; 59,
  `${$feature.both_rate_12}, ${$feature.both_rate_10}`,
  `${$feature.both_rate_6}, ${$feature.both_rate_4}`
);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 14:48:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626681#M42497</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-06-25T14:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626690#M42498</link>
      <description>&lt;P&gt;Thanks for your suggestion. I adjusted my code according to your suggestion, but it still does not display any of the fields on the pop-up!&lt;/P&gt;&lt;P&gt;Not sure what could be the reason there.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 15:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626690#M42498</guid>
      <dc:creator>Seyed-MahdySadraddini</dc:creator>
      <dc:date>2025-06-25T15:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626717#M42500</link>
      <description>&lt;P&gt;Can you provide screen shots of your data? And do you want to show the fields&amp;nbsp;as a comma-separated string ("Field1, field2") or a field list like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_d8fca5.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135069iE90DE0B460E64D2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_d8fca5.png" alt="Snag_d8fca5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 15:46:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626717#M42500</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-06-25T15:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626760#M42512</link>
      <description>&lt;P&gt;The actual field names are too long, so I'm afraid the screen shot won't show much.&lt;/P&gt;&lt;P&gt;But all the fields are numeric.&lt;/P&gt;&lt;P&gt;Preferably I like to show the fields in table format, like your screen shot. Different provinces show respective values in different fields&amp;nbsp; in my data; that is why I need to customize it to show different fields for different provinces.&lt;/P&gt;&lt;P&gt;I wonder if the version of the enterprise I am using would be a factor, 11.3&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 16:55:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626760#M42512</guid>
      <dc:creator>Seyed-MahdySadraddini</dc:creator>
      <dc:date>2025-06-25T16:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626766#M42513</link>
      <description>&lt;P&gt;I just realized why! Thanks for your help&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 18:57:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/pop-up-expression/m-p/1626766#M42513</guid>
      <dc:creator>Seyed-MahdySadraddini</dc:creator>
      <dc:date>2025-06-25T18:57:30Z</dc:date>
    </item>
  </channel>
</rss>

