LinkedIn
Copied!

Table of Contents

Reusing answers in questions

Version:

Only available versions of this content are shown in the dropdown

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.
Create a questionnaire in which you want to reuse answers. For more information, see Creating a questionnaire.

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 Configure Case Management Questionnaire .

  2. Click the questionnaire that you want to edit.

  3. Click Add question New .

  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.

    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.

At run time, your application populates a property with a value that users provided earlier in the questionnaire.
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 Collaboration Center to ask questions, engage in discussions, share ideas, and help others.