<?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 How do I combine two list fields for unique symbols? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-combine-two-list-fields-for-unique/m-p/559919#M28224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two fields that are numbered lists. I want to create conditions that change the unique symbol based on a combination of these fields. Basically, if a condition in Field A is true, use Field B to set the unique symbol, otherwise use Field A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I've come up with in for a custom expression:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var underground = 0&lt;BR /&gt;var aerial = 1&lt;BR /&gt;var existing = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var type = $feature.Route&lt;BR /&gt;var status = $feature["Segment_Status"]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (type == underground){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return DomainName($feature,"Segment_Status")&lt;BR /&gt;}&lt;BR /&gt;else{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return DomainName($feature,"Route")&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This almost seems to work. It combines most of the items in both lists so that I can customize the symbols (however, Underground is missing):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/498326_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I attempt to edit one of these fields from the Pop-up on the map, all of the symbols disappear and the map looks empty except for the labels that remain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add detail to the question; How do I combine two lists to create unique symbols that list all of the symbols and does not make all of the symbols disappear when one of the fields is updated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may be going about this all wrong. Any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2020 16:15:38 GMT</pubDate>
    <dc:creator>JasonBennett</dc:creator>
    <dc:date>2020-06-30T16:15:38Z</dc:date>
    <item>
      <title>How do I combine two list fields for unique symbols?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-combine-two-list-fields-for-unique/m-p/559919#M28224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two fields that are numbered lists. I want to create conditions that change the unique symbol based on a combination of these fields. Basically, if a condition in Field A is true, use Field B to set the unique symbol, otherwise use Field A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I've come up with in for a custom expression:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var underground = 0&lt;BR /&gt;var aerial = 1&lt;BR /&gt;var existing = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var type = $feature.Route&lt;BR /&gt;var status = $feature["Segment_Status"]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (type == underground){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return DomainName($feature,"Segment_Status")&lt;BR /&gt;}&lt;BR /&gt;else{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return DomainName($feature,"Route")&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This almost seems to work. It combines most of the items in both lists so that I can customize the symbols (however, Underground is missing):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/498326_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I attempt to edit one of these fields from the Pop-up on the map, all of the symbols disappear and the map looks empty except for the labels that remain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add detail to the question; How do I combine two lists to create unique symbols that list all of the symbols and does not make all of the symbols disappear when one of the fields is updated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may be going about this all wrong. Any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 16:15:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-combine-two-list-fields-for-unique/m-p/559919#M28224</guid>
      <dc:creator>JasonBennett</dc:creator>
      <dc:date>2020-06-30T16:15:38Z</dc:date>
    </item>
  </channel>
</rss>

