<?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: Arcade Expressions for Symbology in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1357516#M23308</link>
    <description>&lt;P&gt;This was probably 2.8 or 2.9&lt;/P&gt;&lt;P&gt;Make sure you allow symbol property connections (top right of the image under option 3.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 18:02:55 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2023-12-06T18:02:55Z</dc:date>
    <item>
      <title>Arcade Expressions for Symbology</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1246674#M22721</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to Arcade Expressions and I am having some difficulties understanding how this actually works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a road layer with multiple fields, the ones that I am interested in using for symbology are road type and another confirmation field that has only "yes" as a value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like an expression that can show all the road types but only for the features that have "yes" as a value in the other field.&lt;/P&gt;&lt;P&gt;Can someone explain to me how I can build this expression?&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 07:58:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1246674#M22721</guid>
      <dc:creator>MariusVerdes</dc:creator>
      <dc:date>2023-01-10T07:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expressions for Symbology</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1246688#M22722</link>
      <description>&lt;P&gt;An Arcade expression might not be the best way here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Going from this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_10-1673341498565.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60027i9190289C70F84567/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_10-1673341498565.png" alt="JohannesLindner_10-1673341498565.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" alt="" /&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Option 1: Definition query&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Go into the layer options, switch to the Definition Query tab.&amp;nbsp; Click on "New definition query" and use the UI to only select the features where the confirmation field ("TextField2" in my case) is not null. Alternatively, only select where the confirmation field is equal to "Yes". Apply.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1673339984378.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60017i64564BAE92BACD20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1673339984378.png" alt="JohannesLindner_0-1673339984378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will hide all features with null values in the confirmation field, allowing you to use a simple symbology with unique values:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_2-1673340136907.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60019i873196D4B5268530/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_2-1673340136907.png" alt="JohannesLindner_2-1673340136907.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Option 2: Unique values with multiple fields&lt;/U&gt;&lt;/P&gt;&lt;P&gt;In the symbology tab, select both the road type field and the confirmation field ("TextField1" and "TextField2" in my case):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_3-1673340293710.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60020iADC3F3C48E34D26B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_3-1673340293710.png" alt="JohannesLindner_3-1673340293710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Select each symbol where the confirmation field is null (Ctrl + left click to select multiple), remove those from the symbology:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_4-1673340429528.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60021i718BD06AF6247523/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_4-1673340429528.png" alt="JohannesLindner_4-1673340429528.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Uncheck "Show all other values":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_5-1673340511494.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60022iB15F47B34A50E5CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_5-1673340511494.png" alt="JohannesLindner_5-1673340511494.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will hide all features with null values in the confirmation field. BUT, while option 1 doesn't include those features in the layer, option 2 does, it only does not draw them. You can still see them in the attribute table, and they are still getting labeled:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_6-1673340709399.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60023iBFFCCE9A4937D5AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_6-1673340709399.png" alt="JohannesLindner_6-1673340709399.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Option 3: Arcade expression&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Sure, you can do this.&lt;/P&gt;&lt;P&gt;Change to "Single Symbol", format the symbol. Allow symbol property connections and click on the button next to the color picker:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_7-1673340940700.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60024iCC053460FAD1A41F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_7-1673340940700.png" alt="JohannesLindner_7-1673340940700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Click on the expression button, copy/paste and edit the expression below, apply everything.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_8-1673341334953.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60025i34FD9ABCC6DD693F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_8-1673341334953.png" alt="JohannesLindner_8-1673341334953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// hide unconfirmed features by giving them a fully transparent color
if($feature.TextField2 != "Yes") {
    return "rgba(0, 0, 0, 0)"
}

// define a mapping of road type to color
var mapping = {
    "Highway": "red",
    "Two-Lane-Road": "rgb(0, 255, 255)"
}

// return the color corresponding to the feature's road type
return mapping[$feature.TextField]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As with option 2, this will include the unconfirmed features in the layer, but will not draw them:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_9-1673341408951.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60026i0DA064C78ED4EE64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_9-1673341408951.png" alt="JohannesLindner_9-1673341408951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 09:06:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1246688#M22722</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-01-10T09:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expressions for Symbology</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1246714#M22723</link>
      <description>&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for taking the time to explain these 3 options.&lt;/P&gt;&lt;P&gt;One thing I forgot to mention is that I want to do this symbology into a web map, so I can share it with my colleagues. I guess the third solution with the Arcade Expression works the same in the web version as in ArcGIS PRO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 11:37:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1246714#M22723</guid>
      <dc:creator>MariusVerdes</dc:creator>
      <dc:date>2023-01-10T11:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expressions for Symbology</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1246752#M22724</link>
      <description>&lt;P&gt;Ah, sorry, I assumed for ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you're publishing from Pro, you can try the options above and see if they translate to AGOL/Portal.&lt;/P&gt;&lt;P&gt;If you're doing all your work in AGOL or don't want to publish a new layer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;You can still go with option 1&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1673359310788.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60046iDDD3DC9FF700576A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_1-1673359310788.png" alt="JohannesLindner_1-1673359310788.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Option 4: Unique Symbols, using an Arcade expression&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_2-1673359479487.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60047i0AEC3F6076842A84/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_2-1673359479487.png" alt="JohannesLindner_2-1673359479487.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if($feature.ConfirmationField != "Yes") {
    return "hidden"
}
return $feature.RoadType&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then symbolize by unique symbols, drag and drop the "hidden" legend item into the "Other" category, and uncheck that:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_3-1673359827162.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60048i8611595C3E3C3697/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_3-1673359827162.png" alt="JohannesLindner_3-1673359827162.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 14:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1246752#M22724</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-01-10T14:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expressions for Symbology</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1247188#M22729</link>
      <description>&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much, this work perfectly.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 12:01:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1247188#M22729</guid>
      <dc:creator>MariusVerdes</dc:creator>
      <dc:date>2023-01-11T12:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expressions for Symbology</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1357205#M23303</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341"&gt;@JohannesLindner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For option 3, I don't have a button next to the color picker. What version of pro are you using? I currently have 2.9&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 01:10:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1357205#M23303</guid>
      <dc:creator>gissavvi3</dc:creator>
      <dc:date>2023-12-06T01:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expressions for Symbology</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1357516#M23308</link>
      <description>&lt;P&gt;This was probably 2.8 or 2.9&lt;/P&gt;&lt;P&gt;Make sure you allow symbol property connections (top right of the image under option 3.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 18:02:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expressions-for-symbology/m-p/1357516#M23308</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-12-06T18:02:55Z</dc:date>
    </item>
  </channel>
</rss>

