HOW TO

Hide attributes for null values using advanced formatting in the ArcGIS Dashboards list elements

First Published: September 10, 2025
Last Published: April 14, 2026

Summary

In ArcGIS Dashboards, the list element can display feature attributes using Arcade expressions with advanced formatting. Each list item represents a user-defined attribute referenced in the Template field. However, if a field contains null values, the associated static text still appears, resulting in blank or incomplete information, as shown in the example below.

The list element displays attributes for null values

Using the method described in How To: Hide null values or null value counts from the ArcGIS Dashboards elements removes null values entirely from the list, which may not always be the desirable. In some cases, it is preferable to retain the list structure while hiding only attributes with null values. This article provides the workflow to hide attributes for null values using advanced formatting in the ArcGIS Dashboards list elements.

Procedure

  1. In ArcGIS Dashboards, open the dashboard edit page.
  2. Click View The View icon on the dashboard’s toolbar. On the Body tab, click Options The Options icon next to the list element and select Configure.
The Configure option
  1. In the List window, on the List tab, under List options, enable the Advanced formatting option. Refer to ArcGIS Dashboards: Use advanced formatting for more information.
  2. In the Advanced formatting section, click Pop out editor The Pop out editor icon.
  1. In the Advanced formatting editor, highlight the content and remove the existing expression. Copy and paste the following expression below into the editor. Replace <fieldName1> with the field name containing null values, <variable name> with the variable, <Attribute> with the intended attribute, and <yourAttributeName> with the desired attribute name.
Note:
This Arcade expression hides a single attribute in list items when its value is null.
var <variable name> = '';

if (!IsEmpty($datapoint.<fieldName1>)) {
   <variable name> = '<Attribute>'
}

return {
  textColor: '',
  backgroundColor: '',
  separatorColor:'',
  selectionColor: '',
  selectionTextColor: '',
  attributes: {
    <yourAttributeName>: <variable name>
  }
}

Below is the full working script for this example.

var title = '';

if (!IsEmpty($datapoint.Pollution_status)) {
  title = 'Status:'
}

return {
  textColor: '',
  backgroundColor: '',
  separatorColor:'',
  selectionColor: '',
  selectionTextColor: '',
  attributes: {
    status: title
  }
}
  1. Click Done.
  1. On the List tab, under List options, in the Template field, specify the following expression:
{field/<fieldName2>}
{expression/<yourAttributeName>} {field/<fieldName1>}
The expression in the Template field
  1. Click Done.
  2. Click Save The Save icon > Save on the dashboard’s toolbar.

The list element below does not display the attribute for null values.

The attribute is not displayed for null values in the list element

Article ID: 000037996

Software:
  • ArcGIS Dashboards

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options