Skip to main content


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

Formatting text boxes in a questionnaire

Updated on May 11, 2022

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.

Before you begin: Add a question of the multi-text boxes type to your questionnaire. For more information, see Adding a question to a question page.
Note: 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:
    ChoicesActions
    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 ConfigureCase ManagementQuestionnaire.
    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 MoreAdvanced 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.
      For example: 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.
For example: 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

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