I'm trying to create a custom symbology on a map using a feature layer from a Survey123 survey. I'm not sure how to refer to fields created via a predefined dropdown list, though. Referring to their contents as '[value]' doesn't seem to work, like it does for regular string text.
I've pasted my expression below. evaluator_determination is a field with dropdown list options null, Feasible, and Unfeasible. I'm trying to return "Needs Review - Evaluator Marked Feasible" if evaluator_determination is Feasible and approver_determination is null, and return "Needs Review - Evaluator Marked Unfeasible" if evaluator_determination is Unfeasible and approver_determination is null. If I swap out evaluator_determination for a regular string field and use the same syntax, it does work, so I think the issue is the dropdown list - I could be wrong, though.
var output;
If(
$feature.evaluator_determination == 'Unfeasible' &&
IsEmpty($feature.approver_determination)){
output = 'Needs Review - Evaluator Marked Unfeasible';
}
else if(
$feature.evaluator_determination == 'Feasible' &&
IsEmpty($feature.approver_determination)){
output = 'Needs Review - Evaluator Marked Feasible';
}
return output;