<?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 Expression for Assigning Transparency using String Attribute in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/493035#M24879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&amp;nbsp; The layer about 30 different point types each with a custom symbol based on a 'feature type' field.&amp;nbsp; I need these custom point symbols to be 50% transparent if they have not been review and 0% transparent if they have been reviewed.&amp;nbsp; So I need to symbology to be based on two different fields - the first is the feature type' which dictates which custom symbol is used, and the second is 'reviewed' which dictates transparency level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Apr 2019 16:28:42 GMT</pubDate>
    <dc:creator>DanielKonzek</dc:creator>
    <dc:date>2019-04-18T16:28:42Z</dc:date>
    <item>
      <title>Arcade Expression for Assigning Transparency using String Attribute</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/493033#M24877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to be able to have point features show as 50 percent transparent if a field = 'no' and be displayed with no transparency if the same field = 'yes'.&amp;nbsp; I haven't been able to get this to work using a custom expression using the 'When' function and assigning the value of 50 to all features when the field value = 'no'.&amp;nbsp; Is there another way to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current expression:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var reviewed = $feature.Reviewed;&lt;BR /&gt;When(reviewed == 'Yes', '0', '50')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 14:11:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/493033#M24877</guid>
      <dc:creator>DanielKonzek</dc:creator>
      <dc:date>2019-04-18T14:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression for Assigning Transparency using String Attribute</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/493034#M24878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wouldn't you just set the transparency for the "No" symbol in the Change Style dialog?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression would be simply&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;$feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Reviewed&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the Dialog, manually set the transparency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="442404" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/442404_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if there is a direct way to set transparency through Arcade that I'm unaware of, I would expect it to use .5 instead of 50.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 15:12:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/493034#M24878</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-04-18T15:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression for Assigning Transparency using String Attribute</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/493035#M24879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&amp;nbsp; The layer about 30 different point types each with a custom symbol based on a 'feature type' field.&amp;nbsp; I need these custom point symbols to be 50% transparent if they have not been review and 0% transparent if they have been reviewed.&amp;nbsp; So I need to symbology to be based on two different fields - the first is the feature type' which dictates which custom symbol is used, and the second is 'reviewed' which dictates transparency level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 16:28:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/493035#M24879</guid>
      <dc:creator>DanielKonzek</dc:creator>
      <dc:date>2019-04-18T16:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression for Assigning Transparency using String Attribute</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/493036#M24880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was afraid it wouldn't be so easy &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I've had to symbolize several different fields on a single feature, I ended up adding the feature layer multiple times into the web map. Each layer would symbolize the points with a different field but they would have different sizes, so the same point would have overlapping symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This map shows the sites that haven't been visited yet and whether they require water samples to be collected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="442493" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/442493_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 18:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/493036#M24880</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-04-18T18:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression for Assigning Transparency using String Attribute</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/493037#M24881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's our current work-around also.&amp;nbsp; When an edit is made (no switched to yes), there is a lag between the replicated feature service and the change take about 20 seconds and multiple zooms to refresh the data.&amp;nbsp; I was just trying to figure something out that would make the change immediate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 19:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/493037#M24881</guid>
      <dc:creator>DanielKonzek</dc:creator>
      <dc:date>2019-04-18T19:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression for Assigning Transparency using String Attribute</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/1205354#M47538</link>
      <description>&lt;P&gt;I just figured this out trying to do something similar based on a time constraint.&lt;/P&gt;&lt;P&gt;When setting your symbology;&lt;/P&gt;&lt;P&gt;* Define your Unique Symbols&lt;/P&gt;&lt;P&gt;* In Transparency click on "Attribute Values" and in the next window select "New Expression"&lt;/P&gt;&lt;P&gt;* Set your Transparency, in your example set the Low Values to 50&lt;/P&gt;&lt;P&gt;* Click the pencil to write your expression&lt;/P&gt;&lt;P&gt;I have included my screenshots as examples.&amp;nbsp; Based on what you wrote I think your expression would be something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;IIf(&lt;SPAN&gt;$feature.Reviewed = 'Yes', 0,1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 13:16:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-assigning-transparency-using/m-p/1205354#M47538</guid>
      <dc:creator>nnolasco</dc:creator>
      <dc:date>2022-08-23T13:16:45Z</dc:date>
    </item>
  </channel>
</rss>

