HOW TO

Configure word wrapping in ArcGIS Dashboards

Last Published: January 3, 2025

Summary

In ArcGIS Dashboards, a field containing long texts may not fit within the table element when displayed. Word wrapping can be applied to break the text into multiple lines, ensuring the full content is visible when displayed.

The image below shows the text in the Description field is not fully displayed within the table element in ArcGIS Dashboards.

A screenshot of a computerDescription automatically generated

This article describes two workflows to configure word wrapping in ArcGIS Dashboards.

Procedure

Use advanced formatting in the table element

  1. In ArcGIS Dashboards, add the table element into the dashboard. Refer to ArcGIS Dashboards: Add elements for instructions.
  2. Click View The View button on the dashboard toolbar. Click Options The Options button next to the table element and click Configure The Configure button.
  3. In the Table window, on the Data tab, configure the following Data options parameters.
    1. For Table type, click Features.
The Data tab of the table element
    1. For Value fields, click the Add field drop-down menu and select the fields to add in the table. In this example, Name and Description are the fields added.
The Value fields in the Data tab of the table element
  1. Click Values to open the Value options menu and enable advanced formatting. Refer to ArcGIS Dashboards: Enable advanced formatting in a table for instructions.
  2. In the expression window, navigate to the displayText property for the desired field.
  3. Specify the following Arcade expression in the expression window for the desired field. Replace <variable> with the name of the field.
`<div style="text-wrap: wrap;">${$datapoint["<variable>"]}</div>`,

The code below is the full displayText Arcade expression used in this example.

displayText : `<div style="text-wrap: wrap;">${$datapoint["<variable>"]}</div>`,
  1. Click Done.
The Advanced formatting of the table element

The image below shows the table element with word wrapping applied to the desired field.

The table element with advanced formatting applied to the desired field

Use the details element

The details element displays information about features or rows from a layer, based on the layer's pop-up configuration. Use the details element to display the fields with long texts. Refer to ArcGIS Dashboards: Details for more information.

The image below shows the details element displaying the texts from the field per feature.

The details element displaying all the text from the field per feature

Article ID: 000034310

Software:
  • ArcGIS Online
  • ArcGIS Dashboards

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options