Mapping an Expression's Result to a Question
Use an attribute to display the result of an expression in an existing Read Only Text question. The expression will be re-evaluated each time a postback occurs, and you can pass the expression's result into a variable if needed.
Implementation:
- Switch to the Definition tab.
- Select the intended Read Only Text question.
- Right-click the selected question.
- Select Attributes.
- Add a new attribute with the type Mapped to Expression.
- (Optional) If you want to store the result of the expression in a variable, use the Place Result in This Model Variable field to select that variable.
- Switch to the attribute's Value panel.
- Use the Attribute Expression field to enter a single-line expression. The result of this expression will appear in the value section of the read-only text item when its question group loads, and on each subsequent postback while the form is displayed.
- Click OK.