Description
In ArcGIS Experience Builder, adding dynamic text to an app is possible using the Text widget. The data source for dynamic text is based on attributes or statistics from multiple feature layers. Sometimes, these feature layers contain date fields to represent the exact date and time of a record. However, although time is present in the field, it is not displayed with the date as shown in the image below.
Cause
The ‘Show time’ toggle button is disabled in ArcGIS Online Map Viewer.
Solution or Workaround
- In ArcGIS Online Map Viewer, open the feature layer containing the date field.
- Turn on the Show time toggle button. Refer to ArcGIS Online: Configure pop-ups (Map Viewer) for instructions.
- On the Contents (dark) toolbar, click Save and open and click Save to save the map.
- Open the ArcGIS Experience Builder project and navigate to the Insert widget panel.
- Under Page elements, drag and drop the Text widget to a desired position on the experience.
- In the Text widget’s configuration panel, under the Content tab, toggle on the Connect to data toggle button and click Select data.
- In the Select data pane, select the feature layer containing the date field. If needed, click Add new data to add the feature layer from ArcGIS Online.
- Click the Dynamic content
button to display the Dynamic content panel.
- Under the Attribute tab, in the Data section, select Default in the second drop-down menu.
- Click the date field, and click anywhere on the experience outside the Text widget to display the date and time.
The image below shows both the date and time are displayed in the Text widget.