Skip to main content


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

Creating questions with single answers

Updated on December 22, 2021

With the variety of formats available, you can create and save questions with single answers or multiple answers. Adding the questions to questionnaires, or grouping similar questions together on question pages, which you can then include in questionnaires, saves you time and effort. When you create questions, you configure the format for the question type, answer presentation, and answer settings.

You can edit questions, but you should be aware that the changes you make are inherited by all existing question pages and questionnaires.

For information about creating questions with multiple answers, see Creating questions with multiple answers.

For healthcare examples of questions with single answers, see Questionnaire questions.

Pega Care Management Implementation Guide
Before you begin: Create your actions, such as problems, barriers, goals, interventions, and tasks. Based on the results of the questionnaire, you might assign actions that are related to the patient care.

For more information about creating actions, see Creating your application components in the Business Analyst portal.

  1. To access the authoring portal for questionnaires, in the left pane of the Business Analyst portal, click Questionnaires.
    You can use the portal to create new questionnaires, question pages, and questions, as well as edit and remove them.
  2. On the Questionnaire management page, click the Questions tab.
  3. Click Create questionSingle answer.
  4. In the drop-down list, select a question type.
  5. In the Create new question page, on the Form tab, in the Name field, enter a name to identify your question.

    The following figure shows the Form tab for creating a Long answers/comment question:

    Create a Long answer/comment question
    Form tab for providing details for the Long answer/comment question
                                type.
  6. In the Category drop-down list, select an option that is related to the purpose of the question.
    For example: If this question is related to the patient's medical history, click Medical History.
    Note: To populate this list with other options, work with your development team.
  7. Optional: To change the type of your question, in the Question type list, select a different option.
  8. Based on the format of your question, in the Question field, select plain text or rich text by clicking the Rich text editor toggle switch, and then enter the question in the box.
  9. For drop-down, radio buttons, and slider question types, define the available values:
    ChoicesActions
    • Dropdown
    • Radio buttons
    Specify the items that appear in the drop-down list or the labels for radio buttons:
    1. In the Picklist options section, in the Display value field, enter the text that you want to display in the drop-down list or as labels for the radio buttons.
      For example: In response to the How is your overall health? question, the display value might be Good.
    2. For each item that you want to display, repeat substep 9.a.
    SliderSet the values for the slider question type. For example, you might want the slider to begin with 1 and end with 10. Each interval might be marked by 1 and the default value might be 5.
    1. In the Starting range field, enter a beginning value for your slider question type.
    2. In the Ending range field, enter the final value for the slider question type.
    3. In the Interval field, enter a value.
    4. In the Default value field, enter a value.
  10. Click Save.
  11. Specify the presentation of the answers by clicking the Display tab.
  12. Present supporting information to the patient so that they can answer the questions more quickly by selecting the Include supporting document check box.
    You can upload a file or provide a URL to link to the document.
    For example: For a patient with diabetes, you might upload this document: Your Guide to Diabetes: Type 1 and Type 2.
  13. Based on your question type, define the presentation settings, default text, and visibility of your answers:
    ChoicesActions
    • Text box
    • Long answer/comment
    Specify the presentation of the answers and default text in the questionnaire:
    1. In the Answer presentation settings section, in the Answer layout list, select an option to specify how you want to display the answers.
    2. In the Default text to be presented field, enter text that will be available to the user in the questionnaire.
      For example: The preset text might beEnter your email address.
    • Date
    • Date time
    • Check box
    • File upload
    • Info text
    • Slider
    In the Answer presentation settings section, in the Answer layout list, select the option to specify how you want to display the answers.
    DropdownSpecify the presentation and visibility of the answers:
    1. In the Answer presentation settings section, in the Answer layout drop-down list, select an option to specify how you want to display the answers.
    2. In the Picklist options section, for each answer, specify the visibility of the answer.
    3. If you select Existing condition, select a condition.
    4. If you select Custom condition, enter the name of the condition rule that you are configuring in the field, click the Click to configure conditions icon, and in the Conditions dialog box, select options that determine your condition.
      For information about configuring the fields in this dialog box, see Condition builder.
    5. Click OK.
    Radio buttons Specify the presentation of answers and the visibility of the radio button text:
    1. In the Answer presentation settings section, in the Answer layout drop-down list, select an option to specify how you want to display the answers.
    2. In the Display of radio buttons list, select an option to specify how you want to display the radio buttons.
    3. In the Number of items before wrap field, enter a value to specify the number of items that are displayed on one line before the items move to the next line.
    4. Select the Hide clear selection check box to hide the selection.
    5. In the Picklist options section, for each answer, select an option to specify when you want the answer to be visible.
    6. If you select Existing condition, select a condition.
    7. If you select Custom condition, enter the name of the condition rule that you are configuring in the field, click the Click to configure conditions icon, and in the Conditions dialog box, select options that specify your condition.
      For information about configuring the fields in this dialog box, see Condition builder.
  14. Click Save.
  15. Click the Logic tab to determine an action such as task or goal that is related to a specified answer, or dynamically generate another question based on the answer to the question.
  16. In the Answer settings section, select the Save answer to property check box to save the answer to a property so that it can be used in validations, processing, or to associate the answer with an action.
  17. In the Property name drop-down list, select a property to specify where to save the answer.
  18. Specify the answer validation by completing the steps in the following table:
    ChoicesActions
    • Text box
    • Date
    • Date time
    • Long answer/comment
    • File upload
    • Info text
    • Slider
    Specify validation for your answers in your question type:
    1. In the Answer validation section, in the Validation type drop-down list, select a validation option.
    2. If you select Existing, in the Existing validation name drop-down list, select a validation name.
    3. If you select Custom, enter the name of the validation rule that you are configuring in the field, click the Click to configure validations icon, and in the Validate fields based on these conditions dialog box, select options that determine your condition.
      For information about validating the fields, see Validating answers in a questionnaire.
    Check boxSet a score value for the selection of the check box and validate the answer:
    1. Based on the patient's selection of the check box, in the Score field, enter a value.
      For example, entering 10 that means if the patient checks the box, they receive 10 points on the questionnaire. If they do not select the check box, they get 0 points.
    2. In the Answer validation section, in the Validation type drop-down list, select an option to specify the validation type for the answer.
    3. If you select Existing in the Validation type drop-down list, in the Existing validation name drop-down list, select a validation rule name.
    4. If you select Custom in the Validation type drop-down list, enter the name of the validation rule that you are configuring in the field, click the Click to configure validations icon, and in the Validate fields based on these conditions dialog box, select options that determine the validation.
      For information about validating the fields, see Validating answers in a questionnaire.
    5. Click OK.
    • Dropdown
    • Radio button
    Configure actions for your selectable items, assign action tasks, score answers, and validate answers:
    1. In the Answer settings section, below each display value that you configured, click the Add action icon.
    2. In the Actions drop-down list, select an action, such as a task.
    3. In the Element Name drop-down list, select a element name, such as Health Risk Assessment.
    4. In the Assign to drop-down list, to assign the action for this task, select an option.
      Note: The Assign to field is only available for a task action.
      In this example, based on a specified answer, a task of conducting a health assessment with the patient is assigned to a care manager.
    5. In the Score field, enter a value for the answer.
      For example, one answer is assigned a score of 10 points, another answer is assigned a score of 35 points, and so on.
    6. Repeat steps 18.a through 18.e for each action that you are associating with an answer.
    7. In the Answer validation section, in the Validation type drop-down list, select an option to set the validation type for your answer.
    8. If you select Existing, in the Existing validation name drop-down list, select a validation name.
    9. If you select Custom, enter the name of the validation rule that you are configuring in the field, click the Click to configure validations icon, and in the Validate fields based on these conditions dialog box, select options that determine the validation.
      For information about validating the fields, see Validating answers in a questionnaire.
  19. Click Save, and then close the Create new question window.

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