LinkedIn
Copied!

Table of Contents

Formatting text boxes in a questionnaire

Version:

Only available versions of this content are shown in the dropdown

Format multiple text boxes in a questionnaire to ask users to provide short text answers. For example, in a questionnaire for job candidates, you ask users to provide their university major, previous employer, and a name of their own business if they have one.

Add a question of the multi-text boxes type to your questionnaire. For more information, see Adding a question to a question page.

Only standard Pega Platform applications support questions with multiple text boxes. Applications based on Cosmos React do not display questions with multiple text boxes.
  1. Navigate to the questionnaire:

    Choices Actions
    Open the questionnaire in App Studio
    1. In the navigation pane of App Studio, click Case types.

    2. In the list of case types, open a case type of the Questionnaire type that you want to edit.

    Open the questionnaire in Dev Studio
    1. In the header of Dev Studio, click Configure Case Management Questionnaire .

    2. Click the questionnaire that you want to edit.

  2. If you have multiple questions on the question page, click the question that you want to edit.

  3. In the list of question types, select Multi-text boxes.

  4. In the text field, enter the text of the question.

  5. Label the text boxes:

    1. In the Textbox options section, click Add value.

    2. In the text field, enter a label for the text box.

  6. Optional:

    To display the text box only in selected situations, define conditions:

    1. Click More Advanced view .

    2. From the Visible when list, select When, and then click Edit.

    3. Provide a value to compare at run time, a comparator, and a value to compare against the first value.

      To display a text box to provide a company name only to users who have their own businesses, create the condition HasCompany equals to true.
    4. Optional:

      To add more conditions, click Add a row.

    5. If you create multiple rows, define whether an answer needs to meet all or any conditions by selecting either and or or between the rows.

    6. Click Submit.

  7. Click Save.

The following figure shows a sample multi-text boxes question at run time:
Multi-text boxes question
Run-time display of a question of the multi-text boxes type

100% found this useful

Have a question? Get answers now.

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