Displaying a warning in a questionnaire
Use a warning message to encourage questionnaire participants to provide complete answers. For example, if a user enters their birth date in the future, your application displays a reminder that the date must be in the past and be consistent with the customer being an adult.
- In the header of Dev Studio, click .
- On the Questions tab, click a question that you want to edit.
- Expand the Warnings section.
- Define the conditions that control when your application displays the warning.
Choices Actions Use a Boolean expression - In the Visibility list, select Condition (expression).
- In the Warning expression field, enter a string expression that evaluates property values in the questionnaire.
Use a when condition - In the Visibility list, select Condition (when rule).
- In the Warning when field, enter the name of a when condition that evaluates property values in the questionnaire.
Build a custom condition that can be a combination of when conditions and Boolean expressions - In the Visibility list, select Condition (expression).
- Click the Open condition builder icon.
- In the Visible when dialog box, create a condition by providing a value to compare at run time, a comparator, and a value to compare against the first value.
- Optional: To use two conditions, define whether a question needs to meet both or any of the conditions by selecting either and or or between the rows.
- Click Save.
- In the Warning message field, enter the name of a rule that
contains a warning message.For more information, see Messages.
- Click Save.
Previous topic Validating answers in a questionnaire Next topic Changing the run-time order of questions in a questionnaire