You can use a simple question in a survey to collect a single response from a user. By choosing a question format that is specific to the type of information that you are gathering, you can help users provide complete answers.
For example, you can ask users to enter a mobile phone number in a text box or select a check box to indicate whether they are currently employed.
To develop your survey more quickly, create questions in bulk.
Click Designer Studio > Case Management > Survey to open the Survey Management landing page.
Click the name of a survey that has at least one question page defined.
Click Add question > Browse all types > Single answer > [answer type] to open the Add question dialog box.
In the Name field, enter a unique name that describes the purpose of the question.
Optional: To change the scope of the question, expand the Context section and provide a different class name, ruleset name, or ruleset version.
The scope controls which rules can reference your question and which rules your question can reference.
In the Question layout list, select an option that indicates how the text of the question is sourced in your application.
For example, you can define your own text or reuse the text from a paragraph rule.
Provide the source of the question text by entering a value in one of the following fields:
Paragraph - A paragraph rule in your application.
Section reference - A section rule in your application.
Question - Plain text that you provide.
Question text - Rich text that you provide.
Format the fields that users interact with to answer the question.
Expand the Answer presentation settings section.
In the Default field, enter placeholder text that is displayed before the user provides an answer.
In the Rows field, enter the height of the text area.
In the Columns field, enter the width of the text area.
Expand the Answer presentation settings section.
In the Size of text box field, enter the maximum number of characters that an answer can contain.
In the Default field, enter placeholder text that is displayed before the user provides an answer.
Expand the Answer presentation settings section.
In the Default field, select a default date that is displayed before the user provides an answer.
In the Drop down type list, select Data page.
In the Data page field, press the Down Arrow key and select a data page that returns a list of options.
You can pass parameters in the Value field if they are supported by the data page.
In the Property for value field, press the Down Arrow key and select a property on the data page that stores the options for the list.
Optional: To change the default labels in the list, enter a property from the data page in the Property for display text field.
In the Radio button source list, select Data page.
In the Data page field, press the Down Arrow key and select a data page that returns a list of options.
You can pass parameters in the Value field if they are supported by the data page.
In the Property for value field, press the Down Arrow key and select a property on the data page that stores options for the radio buttons.
Optional: To change the default labels of the radio buttons, enter a property from the data page in the Property for display text field.
In the Drop down type list, select Prompt list.
For each choice in the list, repeat the following steps:
Click the Add row icon.
In the When field, press the Down Arrow key and select a when condition that controls whether the choice is included in the list.
In the Display value field, enter the label for the choice.
In the Value field, enter the value that is copied to the clipboard when the user selects this choice.
In the Selected column, click one option to set the default choice in the list.
In the Radio button source list, select Prompt list.
For each radio button, repeat the following steps:
Click the Add row icon.
In the When field, press the Down Arrow key and select a when condition that controls whether the radio button is displayed.
In the Display value field, enter the label for the radio button.
In the Value field, enter the value that is copied to the clipboard when the user selects this radio button.
In the Selected column, click one option to set the default radio button.
In the Section reference field, press the Down Arrow key and select the name of a section that displays fields for the user to enter a response.
For each parameter that the section supports, enter a corresponding value in the Param value field.
In the Map to property field, press the Down Arrow key and select the name of a property that stores the answer that the user provides.
Some types of questions, such as custom sections, do not support property mapping.
Click Save to close the Add question dialog box.
Previous: Adding a question page to a survey |