Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Displaying a warning in a questionnaire

Updated on March 29, 2022

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.

  1. In the header of Dev Studio, click ConfigureCase ManagementQuestionnaire.
  2. On the Questions tab, click a question that you want to edit.
  3. Expand the Warnings section.
  4. Define the conditions that control when your application displays the warning.
    ChoicesActions
    Use a Boolean expression
    Note: Use this approach when users complete your questionnaire offline.
    1. In the Visibility list, select Condition (expression).
    2. In the Warning expression field, enter a string expression that evaluates property values in the questionnaire.
    Use a when condition
    Note: Use this approach when users complete your questionnaire online.
    1. In the Visibility list, select Condition (when rule).
    2. 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
    1. In the Visibility list, select Condition (expression).
    2. Click the Open condition builder icon.
    3. 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.
      For example: To show the warning only to users who have a Gold or Platinum account, create a condition AccountType is in list "Gold", "Platinum".
    4. 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.
    5. Click Save.
  5. In the Warning message field, enter the name of a rule that contains a warning message.
    For more information, see Messages.
  6. Click Save.
  • Previous topic Validating answers in a questionnaire
  • Next topic Changing the run-time order of questions in a questionnaire

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us