<?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: Symbology expression for dropdown list in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375194#M57106</link>
    <description>&lt;P&gt;Yes, dropdown list values generated from Survey123 are domains. I see this when I open up the domain editor:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AliciaMcMurchie1_1-1706393139062.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92985iB348D9B1A1B96E55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AliciaMcMurchie1_1-1706393139062.png" alt="AliciaMcMurchie1_1-1706393139062.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Out of curiosity, I ran the following:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var d = Domain($feature, "evaluator_determination");
return d;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;This gave me a result of:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AliciaMcMurchie1_2-1706393299603.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92986iD884B2A05530BC01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AliciaMcMurchie1_2-1706393299603.png" alt="AliciaMcMurchie1_2-1706393299603.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what to do with that information, though. I've tried a few combinations of expressions, but nothing has been successful. I'm sure this is more to do with my unfamiliarity with writing expressions like this than anything else.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jan 2024 22:10:36 GMT</pubDate>
    <dc:creator>AliciaMcMurchie1</dc:creator>
    <dc:date>2024-01-27T22:10:36Z</dc:date>
    <item>
      <title>Symbology expression for dropdown list</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375166#M57103</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;I'm trying to create a custom symbology on a map using a feature layer from a Survey123 survey. I'm not sure how to refer to fields created via a predefined dropdown list, though. Referring to their contents as '[value]' doesn't seem to work, like it does for regular string text.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I've pasted my expression below. evaluator_determination is a field with dropdown list options null, Feasible, and Unfeasible. I'm trying to return "&lt;SPAN&gt;Needs Review - Evaluator Marked Feasible" if&amp;nbsp;evaluator_determination is Feasible and approver_determination is null, and return "Needs Review - Evaluator Marked Unfeasible" if&amp;nbsp;evaluator_determination is Unfeasible and approver_determination is null. If I swap out evaluator_determination for a regular string field and use the same syntax, it does work, so I think the issue is the dropdown list - I could be wrong, though.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;output&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;SPAN&gt;If&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;evaluator_determination&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;'Unfeasible'&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IsEmpty&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;approver_determination&lt;/SPAN&gt;&lt;SPAN&gt;)){&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;output&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'Needs Review - Evaluator Marked Unfeasible'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;SPAN&gt;else&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;evaluator_determination&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;'Feasible'&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IsEmpty&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;approver_determination&lt;/SPAN&gt;&lt;SPAN&gt;)){&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;output&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'Needs Review - Evaluator Marked Feasible'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;output&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 27 Jan 2024 06:32:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375166#M57103</guid>
      <dc:creator>AliciaMcMurchie1</dc:creator>
      <dc:date>2024-01-27T06:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Symbology expression for dropdown list</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375186#M57104</link>
      <description>&lt;P&gt;If these are domains, are you referring to the the code?&amp;nbsp; I'm not sure if you can refer to the domain description.&lt;/P&gt;&lt;P&gt;Go to the data data of your fea&lt;/P&gt;&lt;P&gt;ture layer, then 'fields' tab and select your field.&amp;nbsp; You should then be able to see the domain codes and descriptions if you open up the domain editing option.&lt;/P&gt;&lt;P&gt;If this is the case then possibly just try to use the domain code e.g.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;$feature.approver_determination == 1234&lt;/LI-CODE&gt;&lt;P&gt;or use DomainName() function &lt;A href="https://developers.arcgis.com/arcade/function-reference/feature_functions/#domainname" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/feature_functions/#domainname&lt;/A&gt; :&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;DomainName($feature, 'approver_determination') == 'unfeasible'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 18:33:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375186#M57104</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2024-01-27T18:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Symbology expression for dropdown list</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375194#M57106</link>
      <description>&lt;P&gt;Yes, dropdown list values generated from Survey123 are domains. I see this when I open up the domain editor:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AliciaMcMurchie1_1-1706393139062.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92985iB348D9B1A1B96E55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AliciaMcMurchie1_1-1706393139062.png" alt="AliciaMcMurchie1_1-1706393139062.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Out of curiosity, I ran the following:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var d = Domain($feature, "evaluator_determination");
return d;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;This gave me a result of:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AliciaMcMurchie1_2-1706393299603.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92986iD884B2A05530BC01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AliciaMcMurchie1_2-1706393299603.png" alt="AliciaMcMurchie1_2-1706393299603.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what to do with that information, though. I've tried a few combinations of expressions, but nothing has been successful. I'm sure this is more to do with my unfamiliarity with writing expressions like this than anything else.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 22:10:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375194#M57106</guid>
      <dc:creator>AliciaMcMurchie1</dc:creator>
      <dc:date>2024-01-27T22:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Symbology expression for dropdown list</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375195#M57107</link>
      <description>&lt;P&gt;Ok looks like to domain isn't the cause.&amp;nbsp; Can you test each logical expression individually without any AND statements etc. as a check?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 22:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375195#M57107</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2024-01-27T22:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Symbology expression for dropdown list</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375718#M57123</link>
      <description>&lt;P&gt;The second part of the statement (the IsEmpty part) runs, but the first part incorrectly returns null in the following scenarios:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;If(
  $feature.evaluator_determination == 'Unfeasible'){
    return 'Unfeasible';
  }&lt;/LI-CODE&gt;&lt;LI-CODE lang="python"&gt;If(
  DomainName($feature, 'evaluator_determination') == 'Unfeasible'){
    return 'Unfeasible';
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue is that I need to write a "For ... in" statement. I think what I've been doing is just instructing arcade to look at a single row of the attribute table. EDIT: That can't be right, since based on this, it looks like a loop shouldn't be needed&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-assign-colored-symbols-to-attributes-using-arcad-000026986" target="_blank"&gt;https://support.esri.com/en-us/knowledge-base/how-to-assign-colored-symbols-to-attributes-using-arcad-000026986&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 22:45:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375718#M57123</guid>
      <dc:creator>AliciaMcMurchie1</dc:creator>
      <dc:date>2024-01-29T22:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Symbology expression for dropdown list</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375740#M57124</link>
      <description>&lt;P&gt;Okay, I found the problem, and it wasn't my expression, it was my own user error. I had been expecting more to return in the expression console, and it just doesn't. The expression shows the correct symbology in the map.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 23:17:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/symbology-expression-for-dropdown-list/m-p/1375740#M57124</guid>
      <dc:creator>AliciaMcMurchie1</dc:creator>
      <dc:date>2024-01-29T23:17:32Z</dc:date>
    </item>
  </channel>
</rss>

