Hey can anyone help with an issue I am having in my Web map/app?
I have a web map that has a few layers, one of which is pulling data from a live survey123 form. I made an Arcade Expression to categorize symbology from a select multiple question in the form. This worked perfectly, but only 3/5 options had been selected in the survey so the legend/symbology didn't include those. Now the two missing options have been selected (by me for a test) and the symbology does not update.
I have tried removing the layer, expression, rewriting etc. but nothing seems to fix it. And when I delete/reupload the code it actually excludes more of the question options....?
Here is the code I used for symbology:
var a = $feature.plant_id;
if(a == 'eurasian'){
return "Eurasian watermilfoil"
} else if (a == 'pondweed'){
return "Curlyleaf pondweed"
} else if (a == 'pondweed,eurasian'){
return "Both"
} else if (a == 'eurasain,pondweed'){
return "Both"
} else {
return "Neither (absence)"
}
All options of the question have been selected, but only "Eurasian watermilfoil" and "Neither" is displaying now. It is as if it does not recognize the new data. And I checked to make sure the layer on a separate map was getting the new points from the survey.