Hi Everyone,
I have a legacy project which was started by my predecessor . We have a Survey123 form for the public to submit records, and an associated dashboard to show these records to the public as they come in. This had been set up in such a way that in the feature layer there is a "Year" field which is not in the form, and does not get populated when the form is submitted. However, the web map that the dashboard uses displays points by "Year", so when a new record comes in that doesn't have "Year" completed it doesn't show up on the map, and I have to manually enter the Year. Not great if I'm off for the weekend!
Is there a way to set up an expression in the feature layer that would automatically populate the "Year" column from "Date"? Or would I be better to set up another web map where I display points by "Date" and just group the values to each year?
Any thoughts would be appreciated!
You could set the symbology to Year($feature['your-date-field']).
Or if you keep using the legacy field, in the form, you can have that field calculate with format-date(${your-date-field}, '%Y').