Appendix: Setting the Default Response with an Attribute Expression
The Default Response Expression attribute can be used when you want the default response to change depending on the outcome of an expression. If the expression attached to a response evaluates as True, that response will be set as the default response for the question. This can be used in cases where the list of responses can change based on choices made by the end user, allowing you to vary which response should be the default based on which responses are currently available.
Default Response Expression attributes will override the Default Response check box found in the Further Question Options panel.
Implementation:
- Switch to the Definition tab.
- Click the intended Multiple Choice question whose default response you want to set and open the list of responses.
- Right-click the response you want to set as the default response, and select Attributes.
- Add a Default Response Expression attribute with the following Attribute Expression:
ChangeDefaultResponse="True";
- Click OK to save the attribute.