Table of Contents

Formatting a slider in a questionnaire


Only available versions of this content are shown in the dropdown

Format a slider in a survey to control the range of values from which users select an answer. For example, you can ask how many days users work each week by formatting a slider with the values one through seven.

Add a question of the slider type to your survey. For more information, see Adding a question to a question page.

Only standard Pega Platform applications support questions with a slider. Applications based on Cosmos React do not display questions with sliders.
  1. Navigate to the questionnaire:

    Choices Actions
    Open the questionnaire in App Studio
    1. In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.

    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 Survey .

    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. From the list of question types, select Slider.

  4. In the rich text editor, enter your question.

    Enter How many days a week do you work?.
  5. In the Question settings pane, format the slider:

    1. In the Starting range field, enter the minimum numerical value for the scale, for example, enter 1.

    2. In the Ending range field, enter the maximum numerical value for the scale, for example, enter 7.

    3. In the Interval field, enter the numerical interval between the possible values on the scale, for example, enter 1.

    4. Optional:

      To preset the answer to the question, enter a value in the Default value field, for example, enter 5.

    5. Optional:

      To show possible values on the slider, select the Show captions check box.

  6. Click Save.

The following figure shows a slider with captions at run time:
Slider with captions
A run-time display of a question of a slider type with captions

Have a question? Get answers now.

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