<?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 Arcade Expressions, Conditionals and PopUps in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expressions-conditionals-and-popups/m-p/492643#M24861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a hosted feature layer where there are two fields I'm concerned with: Status and Assignment_Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The status can be reported, assigned or completed. If it's assigned, then an assignment type is given. I want the popup to display the Assignment_Type only when the Status field = "Assigned"&lt;BR /&gt;&lt;BR /&gt;I have written:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If($feature.Status=='Assigned'){&lt;/P&gt;&lt;P&gt;return ($feature.Assignment_Type)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else{&lt;/P&gt;&lt;P&gt;return ""&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the Assignment_Type shows up unconditionally!&amp;nbsp; What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2018 22:11:27 GMT</pubDate>
    <dc:creator>deleted-user-jxpbpbjlZInj</dc:creator>
    <dc:date>2018-12-06T22:11:27Z</dc:date>
    <item>
      <title>Arcade Expressions, Conditionals and PopUps</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expressions-conditionals-and-popups/m-p/492643#M24861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a hosted feature layer where there are two fields I'm concerned with: Status and Assignment_Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The status can be reported, assigned or completed. If it's assigned, then an assignment type is given. I want the popup to display the Assignment_Type only when the Status field = "Assigned"&lt;BR /&gt;&lt;BR /&gt;I have written:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If($feature.Status=='Assigned'){&lt;/P&gt;&lt;P&gt;return ($feature.Assignment_Type)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else{&lt;/P&gt;&lt;P&gt;return ""&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the Assignment_Type shows up unconditionally!&amp;nbsp; What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 22:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expressions-conditionals-and-popups/m-p/492643#M24861</guid>
      <dc:creator>deleted-user-jxpbpbjlZInj</dc:creator>
      <dc:date>2018-12-06T22:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expressions, Conditionals and PopUps</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expressions-conditionals-and-popups/m-p/492644#M24862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;IIf($feature.Status=='Assigned', &lt;SPAN&gt;$feature.Assignment_Type, ""&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/function-reference/logical_functions/" title="https://developers.arcgis.com/arcade/function-reference/logical_functions/"&gt;Logical Functions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups"&gt;https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;IF this doesn't work, can you share your map?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;-Kelly&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 22:18:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expressions-conditionals-and-popups/m-p/492644#M24862</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2018-12-06T22:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expressions, Conditionals and PopUps</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expressions-conditionals-and-popups/m-p/492645#M24863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh I was over-complicating it! For anyone else that may come across this thread, I would like to add that additionally, I needed there to be a bit of text prior to the attribute so my final expression was the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIf($feature.Status=='Assigned', "Action Assigned: " + $feature.Assignment_Type, "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 23:47:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expressions-conditionals-and-popups/m-p/492645#M24863</guid>
      <dc:creator>deleted-user-jxpbpbjlZInj</dc:creator>
      <dc:date>2018-12-06T23:47:28Z</dc:date>
    </item>
  </channel>
</rss>

