Hi,
I need to display fields and its values in popup panel based on one of its corresponding field values. I tried using if/else statement but doesn't return the values that I want. I found esri support help resources (https://support.esri.com/en/technical-article/000024112) but couldn't able to resolve. What is was particularly looking is
if ($FieldName4 == 1) {
return FieldName1.Value, FieldName2.Value, FieldName3.Value
}
if ($FieldName4 == 2) {
return FieldName1.Value, FieldName2.Value, FieldName3.Value
}
For instance in the above esri resource table; I need to display all the values for fields i.e. 'Student_ID', 'Grade1', 'Grade2' that are related to Field value 'Excellent' from 'Results' Field.
Both expression has to be displayed in same popup though.
Not sure if there is any better way to do other than if/else statement. I would greatly appreciate for any help or resources in this regard.
Thanks,
kshah