HOW TO
In ArcGIS Online Map Viewer, using custom Arcade expressions is useful to differentiate specific features, for example, to give clarity to an urgent feature. It is possible to customize the display in the pop-ups by feature basis using a simple Arcade expression.
This article provides the steps to omit empty attribute fields from displaying in pop-ups or replacing the value with custom text using an Arcade expression in ArcGIS Online Map Viewer. The following procedure utilizes the logical function, IIF.
Note: If the feature is empty, a blank value is returned. If there is a value, the attribute or the "description" is returned in the expression.
IIF(isEmpty($feature.name), " ", $feature.name)
IIF(isEmpty($feature.name), " ", "description")
IIF($feature.name == " ", " ", $feature.name)
IIF($feature.name == " ", " ", "description")
Note: Alternatively, click Fields list to expand the list, click Select fields to select the desired fields, and the newly created expression in step 7 to be displayed in the pop-ups. Click Done.
Get help from ArcGIS experts
Download the Esri Support App