Skip to main content


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

Creating a stand-alone question with multiple answers

Updated on March 29, 2022

Gather information when a case is offline by creating a stand-alone, multi-answer question in Dev Studio. You can reference stand-alone questions outside the context of a questionnaire, for example, while processing an order, you can ask the customer a single question about their satisfaction with the sales application.

Note: Only standard Pega Platform applications support questions with multiple answers. Applications based on Cosmos React display only single-answer questions.
  1. In the header of Dev Studio, click ConfigureCase ManagementQuestionnaire.
  2. Click the Questions tab.
  3. Click Create question Browse all types Multi answer[answer type].
  4. In the Name field, enter a unique name that describes the purpose of the question, for example, enter Customer service rating.
  5. Optional: To change the scope of the question, expand the Context section and provide a different class name, ruleset name, or ruleset version.
    The scope controls which rules can reference your question and which rules your question can reference.
  6. Optional: To manage your questions efficiently, in the Category field, you can enter a category for the question, for example, enter SatisfactionRatings.
  7. In the Question layout list, select how your application sources the text of the question:
    ChoicesActions
    Plain text that you provide
    1. Select Plain Text.
    2. In the text editor, enter the text of the question.
    Rich text that you provide
    Note: Available only in standard Pega Platform applications. Applications based on Cosmos React do not support this option.
    1. Select Rich text.
    2. In the Question text field, enter your question.
    3. Optional: To make the output of the question more accurate, apply formatting to your text.
      For example: Emphasize certain words with the bold style, and apply a numbered list.
    Custom HTML rule
    Note: Available only in standard Pega Platform applications. Applications based on Cosmos React do not support this option.
    Note: Use a custom HTML rule only in specific use cases that you cannot complete by reusing the standard rules.
    1. Select Custom HTML.
    2. In the Custom HTML field, enter the name of the rule that contains a custom HTML question.
    A section rule in your application
    Note: Available only in standard Pega Platform applications. Applications based on Cosmos React do not support this option.
    1. Select Section.
    2. In the Section reference field, enter the name of the rule that contains a section that you want to reuse.
    A paragraph rule in your application
    Note: Available only in standard Pega Platform applications. Applications based on Cosmos React do not support this option.
    1. Select Paragraph.
    2. In the Section reference field, enter the name of the rule that contains a section that you want to reuse.
  8. Optional: To format the answers, in the Answer section, define how your questionnaire displays the available choices in the question.
    For example: Format a table by providing a class that contains a table, adding columns that reference column properties, and adding several rows.
  9. Define how your application stores the answer in the data model:
    • To not map the answer, in the Property type list, select No Property Mapping.
    • To store the answer as a single-value property, in the Property type list, select Single Value.
    • To store the answer as a page list, in the Property type list, select Page List, and then, in the Page list field, enter a page list property to store the answer.
    Note: The Property type list is not available for questions of the table type, because you configure property mapping while configuring each column by completing the Column property field.
  10. Optional: To ensure that the information that users provide is accurate and in an expected format by displaying an error message in your questionnaire when the answer is invalid, in the Answer section, in the Answer validation field, enter the name of a validation rule.
    Note: Answer validation is not available for questions of the table type.
  11. Optional: To encourage questionnaire participants to provide complete answers, configure a warning. For more information, see Displaying a warning in a questionnaire.
What to do next: Organize your stand-alone question with related questions by adding it to a question page. For more information, see Adding a question to a question page.

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