Select to view content in your preferred language

How to use Arcade Expression to dynamically change layer symbol based on time attribute

5391
10
Jump to solution
05-07-2019 09:44 AM
DamonNelton
Occasional Contributor

I have a point layer used for work permits. When the field crew pulls a new work permit they create a point via collector and complete attribute fields to document date permit was pulled and date permit will expire. I would like to have the ability to automate the change in symbology based on "time/date". Example, if permit is good for 14 days I want the symbol to be a green circle for the first 9 days and then change to an orange circle from days 10-14 and then change to a red circle days >14.

Any help is appreciated. 

0 Kudos
10 Replies
FrancisHourigan1
Occasional Contributor

I have a similar question: Let's say that I have a date field that shows a future date like March 21, 2022, and I want to see the symbology for any dates before this date to be green but once this date is reached then the polygon turns red. Essentially future dates are green and past dates are red. Is this a similar Arcade script or is there a more simple way to go about this? 

Thanks!

0 Kudos