Select to view content in your preferred language

Customize the output of the Near Me widget in Experience Builder

41
0
6 hours ago
AnneReynolds
Occasional Contributor

I would like to customize the output of the Near Me widget in Experience Builder to simply list to presence or absence of a feature or attribute.  Like this

var out = "";

out += "Field A: " + IIF(IsEmpty($feature.FieldA), "Not Present", "Present") + TextFormatting.NewLine;
out += "Field B: " + IIF(IsEmpty($feature.FieldB), "Not Present", "Present") + TextFormatting.NewLine;
out += "Field C: " + IIF(IsEmpty($feature.FieldC), "Not Present", "Present");

return out;

 

0 Kudos
0 Replies