HOW TO

Configure dynamic text on a Button widget in ArcGIS Experience Builder

Last Published: November 1, 2024

Summary

Dynamic text on a Button widget in ArcGIS Experience Builder is useful when the widget is required to automatically display specific text before and after a feature is selected on the map, while displaying the details of a feature’s particular attribute when it is selected.

In this article, the Button widget is configured to display the text 'Select a landmark’ by default and after a landmark feature is selected on the map, the landmark name is displayed.

Procedure

  1. In ArcGIS Experience Builder, click Create new, select the preferred template, and click Create.
  2. On the Insert widget panel, search for the Button widget, drag and drop it to the canvas.
  3. Click the Button widget. On the right panel, on the Content tab, configure the following settings.
    1. Turn on the Connect to data toggle.
    2. Under Connect to data, click Select data.
    3. Under Select data, click the Expand The Expand Icon to expand feature layer selection options icon to expand the feature layer options of the Map widget, and select the desired feature layer.
    4. Under Connect to data, click the selected feature layer’s drop-down list options, and select Selected features.
    5. Under Text, click the Static The Static icon to expand text configuration options icon to expand the text’s drop-down list options. Click Expression.
Clicking Expression from the text configuration drop-down
  1. Under Expression, in the first text box, specify the name of the dynamic text. For this example, 'Select a landmark' is specified.
  2. Under Expression, in the second text box delete the expression “Button” and select the desired attributes under Data to form an expression. For this example, the 'Name' attribute is selected.
Expression configuration pane
  1. Click Insert on the bottom of the panel to complete the expression.
  1. ​​​​​​Click Save The Save icon to save changes to the experience to save the configurations.

The Button widget text changes dynamically, displaying the feature name when a feature is selected on the map.

The dynamic text changing before, during and after a feature is selected in a Button widget

Article ID: 000028346

Software:
  • ArcGIS Experience Builder

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