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:

  1. Switch to the Definition tab.
  2. Click the intended Multiple Choice question whose default response you want to set and open the list of responses.
  3. Right-click the response you want to set as the default response, and select Attributes.
  4. Add a Default Response Expression attribute with the following Attribute Expression:

ChangeDefaultResponse="True";

  1. Click OK to save the attribute.