I have a point layer that contractors use to record the status of plantings. Initially, contractors record an observation for each plant. If the plant needs to be replaced, they click on their observation point and record the planting details at the time of replanting. The calculated expression will automatically update the symbology of the point from the value recorded in the ObsStatus field to the domain value "Alive Healthy" (by updating the value in the Current Status field using the arcade script). My issue is that the script works in ArcGIS Online, but not in Field Maps 24.1.0. Why?
Solved! Go to Solution.
Is CurrentStatus the name of the field you are applying the calculation to? If so, you can probably just return $feature.ObsStatus in your else statement.
Also, dates don't play nice with isEmpty for some reason. Try "if (replantingdate >0)"
Thank you! Those suggested changes worked. The amended script now works in Field Maps:
Is CurrentStatus the name of the field you are applying the calculation to? If so, you can probably just return $feature.ObsStatus in your else statement.
Also, dates don't play nice with isEmpty for some reason. Try "if (replantingdate >0)"
Thank you! Those suggested changes worked. The amended script now works in Field Maps: