Skip to main content


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

Reusing answers in questions

Updated on March 29, 2022

Create more personalized and comprehensive questionnaires by reusing the answers to questions in subsequent questions. For example, in a sales application, a question prompts the user to enter their name, and then all following questions can start with the answer that the user provides.

You can reuse only answers to questions that already exist in your questionnaire or in the base class in which you create your questionnaire.
Before you begin: Create a questionnaire in which you want to reuse answers. For more information, see Creating a questionnaire.
Note: Only standard Pega Platform applications support reusing answers in questions. Applications based on Cosmos React do not support this option.
  1. In the header of Dev Studio, click ConfigureCase ManagementQuestionnaire.
  2. Click the questionnaire that you want to edit.
  3. Click Add questionNew.
  4. In the list of question types, select the type of question that you want to create.
    For more information about creating questions, see Adding a question to a question page.
  5. In the text field, enter a question, and then place the cursor where you want to reuse the answer.
  6. On the text editor toolbar, click the Insert Property icon.
  7. In the Select from question response dialog box, select a question from which you want to reuse the answer.
    For example:
    Reusing an existing answer in a block of text
    Select from question dialog box and a questionnaire with a reused answer
    The question that you select must appear in the questionnaire before the question that you are creating.
  8. Click Save.
Result: At run time, your application populates a property with a value that users provided earlier in the questionnaire.
For example:
Reusing an existing answer in another question to address a user by name
A run-time question page with two questions and a block of text with a reused answer

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