Hi guys, I'm hoping someone can help me out there.
I have a feature service and when I click the map I want to use arcade to only show the fields and names as a list for the attribute being "Yes". Leaving "No" as not displayed to tidy the popup result.
Could someone please help with the arcade to achieve this. I've added a screenshot of the attributes and Field names as an example.
If I click on this feature I only want Black_Watt, Blackwood and Briar_Rose displayed in the popup. Leaving the No's out.
Thanks in advance.
Tim
Solved! Go to Solution.
var yes = []
for(var field in $feature) {
if($feature[field] == "Yes"){
Push(yes, field)
}
}
return Concatenate(yes, ", ")
var yes = []
for(var field in $feature) {
if($feature[field] == "Yes"){
Push(yes, field)
}
}
return Concatenate(yes, ", ")
Thank you, perfect!!! 😌