Creating a stand-alone question with multiple answers
Gather information when a case is offline by creating a stand-alone, multi-answer question in Dev Studio. You can reference stand-alone questions outside the context of a questionnaire, for example, while processing an order, you can ask the customer a single question about their satisfaction with the sales application.
- In the header of Dev Studio, click .
- Click the Questions tab.
- Click .
- In the Name field, enter a unique name that describes the purpose of the question, for example, enter Customer service rating.
- 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.
- Optional: To manage your questions efficiently, in the Category field, you can enter a category for the question, for example, enter SatisfactionRatings.
- In the Question layout list, select how your application sources
the text of the question:
Choices Actions Plain text that you provide - Select Plain Text.
- In the text editor, enter the text of the question.
Rich text that you provide - Select Rich text.
- In the Question text field, enter your question.
- Optional: To make the output of the question more accurate, apply formatting to your text.
Custom HTML rule - Select Custom HTML.
- In the Custom HTML field, enter the name of the rule that contains a custom HTML question.
A section rule in your application - Select Section.
- In the Section reference field, enter the name of the rule that contains a section that you want to reuse.
A paragraph rule in your application - Select Paragraph.
- In the Section reference field, enter the name of the rule that contains a section that you want to reuse.
- Optional: To format the answers, in the Answer section, define how your questionnaire displays the available choices in the question.
- Define how your application stores the answer in the data model:
- To not map the answer, in the Property type list, select No Property Mapping.
- To store the answer as a single-value property, in the Property type list, select Single Value.
- To store the answer as a page list, in the Property type list, select Page List, and then, in the Page list field, enter a page list property to store the answer.
- Optional: To ensure that the information that users provide is accurate and in an expected format
by displaying an error message in your questionnaire when the answer is invalid, in the
Answer section, in the Answer validation
field, enter the name of a validation rule.
- Optional: To encourage questionnaire participants to provide complete answers, configure a warning. For more information, see Displaying a warning in a questionnaire.
Previous topic Creating a stand-alone question with a single answer Next topic Reusing answers in questions