You can add a complex question to a survey to collect a series of responses from users. For example, you can use ask users to list their five favorite movies.
Click Designer Studio > Survey Management, and then click Edit next to the name of a survey that has at least one question page defined.
In the list of question pages for the survey, right-click the name of a question page and select Add Complex Question > New.
In the Name field of the Add Complex Question dialog box, enter a short description that is associated with the underlying question rule.
You can change the value in the ID field, which is populated based on the value that you provide in the Name field.
Optional: Expand the Settings section to change the class or ruleset for the question.
By default, questions apply to the same class as the survey with which they are associated.
In the Question field, enter the text that is displayed when users reach the question in the survey.
Format the fields that users populate to answer the question.
In the Answer list, select Freeform.
In the Display Header field, enter a label that describes the group of fields.
In the Number of rows list, select Fixed.
In the Property Type list, select No Property Mapping to store the answers to the question in the default clipboard structure.
In the Data type list, select Date or Text, based on the expected response to the question.
In the grid that is displayed, add one row for each field in the group.
You can use the following fields in each row:
Answer ID - A unique identifier on the clipboard that distinguishes this field from other fields in the group.
When - A when condition that controls whether this field is displayed in the group.
Display value - The label of the field.
Value - The value that is stored on the clipboard when a user enters a date or text in the field.
In the Answer list, select Freeform.
In the Display Header field, enter a label that describes the group of fields.
In the Number of rows list, select Dynamic.
In the Property Type list, select No Property Mapping to store the answers to the question in the default clipboard structure.
In the Data type list, select Date or Text, based on the expected response to the question.
At run time, users decide how many fields are added to the group. For example, they can enter none, some, or all the dates of their previous medical procedures.
In the Answer list, select Check boxes.
In the Display Header field, enter a label that describes the group of check boxes.
In the Property Type list, select No Property Mapping to store the answers to the question in the default clipboard structure.
In the grid that is displayed, add one row for each check box in the group.
You can use the following fields in each row:
Answer ID - A unique identifier on the clipboard that distinguishes this check box from other check boxes in the group.
When - A when condition that controls whether this check box is displayed in the group.
Display value - The label of the check box.
Value - The value that is stored on the clipboard when a user selects this check box.
Selected - Whether this check box is selected by default.
Follow these steps to ask a series of related questions that are answered by selecting options from the same group of radio buttons. For example, you can ask users to rate their pain threshold for different events, such as swimming, running, and walking.
In the Answer list, select Radio buttons.
In the Property Type list, select No Property Mapping to store the answers to the question in the default clipboard structure.
In the Radio Button Header Details grid, add one row for each radio button in the group.
You can use the following fields in each row:
Label - The label of the radio button that is displayed as a column heading.
Value - The value that is stored on the clipboard when a user selects this radio button from the group of options.
In the Radio Button Row Details grid, add one row for each item in the series.
You can use the following fields in each row:
Answer ID - A unique identifier on the clipboard that distinguishes this item from other items in the series.
When - A when condition that controls whether this item is displayed in the series.
Display value - The label that is displayed as a row heading.
Default - The option that is selected by default for this item in the series.
Click Add to close the Add Complex Question dialog box.
Click Save.
Note: This functionality is available when you purchase and install the PegaSurvey application.
Previous: Adding a simple question to a survey |