Working with dynamic text boxes
Dynamic text boxes allow you insert formatted text connected to your data source. When a template containing a dynamic text box is rendered, the dynamic text is automatically evaluated by the data connection and updated in the output.
Insert a dynamic text box
To insert a dynamic box:
- Navigate to a data connection in the data sidebar
- Under the “Components” section, drag and drop a dynamic text component into an empty area in the editor stage
Edit a dynamic text box
To edit a dynamic text box:
- Click on a text box in the editor stage
- Within the text box, you can type in an expression that will be evaluated by the data connection.
- Alternatively, within the ribbon menu navigation, you can click Field and edit the expression from within the field ribbon menu. You can also format the dynamic text value from within this menu.
- To format the text, click Format in the editor ribbon menu navigation.
- You can style color, font size, alignment, add hyperlinks, and more from within the format ribbon menu.
Copy an expression from a field, dimension or measure for use in a dynamic text box
You can copy an expression from a field, dimension or measure in a data connection for use in a dynamic text box. To do this:
- Navigate to a data connection in the data sidebar
- Locate a dimension, measure, or field and right-click on it. From within the context menu, click Copy expression
Note that for some data connections, including Qlik Sense, dimensions used in dynamic text will not return a value unless the returned data only contains one value. For example, if you use the field “City”, the value will only be populated if the dynamic text box is filtered on a single city.