Summary
Dynamic text in the Text widget in ArcGIS Experience Builder is important when the widget must display the text before and after a feature is selected. Dynamic texts can be bold, underlined, or italicized using the Text widget's pop-up format box. However, the whole sentence is formatted, as shown in the image below, which is sometimes not the desired outcome.
This article provides the workflow to bold, underline, and italicize specific words of a dynamic text in the Text widget in ArcGIS Experience Builder.
Procedure
Insert the HTML tags in the text field of the layer's attribute table in ArcGIS Online.
- Log in to ArcGIS Online.
- Click Content at the top of the website and navigate to the My Content tab.
- Click the specific web map or feature layer containing the desired text field to open its item details page.
- Under Layers, click the feature layer and navigate to the Data tab to display the attribute table.
- Double-click the field containing the text to activate editing, and insert the HTML tags provided.
- To bold a word, use the <strong> and </strong> tags.
<strong>insert word or phrase</strong>
- To underline a word, use the <u> and </u> tags.
<u>insert word or phrase</u>
- To italicize a word, use the <em> and </em> tags.
<em>insert word or phrase</em>
The HTML code below shows the example of a bold, underlined, and italicized word.
<strong>Bold</strong>, <u>underlined</u>, <em>italicized</em>
The image below shows the result in the attribute table.
- Open the ArcGIS Experience Builder project and navigate to the Insert widget panel.
- Under Page elements, drag and drop the Text widget to the desired position on the experience.
- In the Text widget’s configuration panel, under the Content tab, toggle Connect to data on and click Select data.
- In the Select data pane, select the feature layer containing the text field.
- Click the Dynamic content
button to display the Dynamic content panel. - Under the Attribute tab, in the Data section, select Default from the second drop-down. Optionally, select Selected features to manually select a specific feature from other widgets, such as the List widget.
- Click the text field, and click anywhere on the experience outside the Text widget to display the formatted text. Optionally, toggle Live view on, on the builder toolbar, to display the formatted text of the selected features from another widget.
The image below shows the dynamic text in the Text widget displaying the specific bold, underlined, and italicized words.