Populating a question template
Populate a question template to define the single-answer questions that you want to create in bulk.
- Download the question template.
- In the header of Dev Studio, click .
- On the Questions tab, click Import questions.
- Click Download template to save a Microsoft Excel file to your local machine.
- Open the file.
- For each question to create in bulk, populate a row in the file.
- In the ID column, enter text that uniquely identifies the
question.
If you enter the ID of an existing question, your application prompts you to update or skip the question when you import the question template.
- In the Name column, enter a label for the question.
- In the ID column, enter text that uniquely identifies the
question.
- Provide text for each question.
- To use plain text:
In the Question Layout column, select plain.
In the Question Plain Text column, enter the question text.
- To use styled text:
In the Question Layout column, select rte.
In the Rich text question content column, enter question text that includes HTML tags.
For example, you can use the
<em>
tag to italicize your question text.
- To use plain text:
- Configure the answer format for each question.
- Attachment:
In the Answer Mode column, select File.
- Text area, Text box, Date, or Date/time:
In the Answer Mode column, select freeform.
In the Answer Freeform Format column, select an option that corresponds to your answer format.
- Check box:
In the Answer Mode column, select checkbox.
- Radio buttons:
In the Answer Mode column, select radio.
In the Answer option labels column, enter a comma-separated list of the choices that users can select.
In the Answer option values column, enter a comma-separated list of the values that map to the choices that users can select.
In the Radio button label orientation column, choose whether the choices are stacked or side-by-side.
- Optional:
To control how much screen space is used by horizontal radio buttons, enter an integer in the Number of items before wrap column.
- List:
In the Answer Mode column, select dropdown.
In the Answer option labels column, enter a comma-separated list of the choices that users can select.
In the Answer option values column, enter a comma-separated list of the values that map to the choices that users can select.
- Custom section:
In the Answer Mode column, select section.
In the Section Reference column, enter the name of a section that is in the same class path as the question.
- Attachment:
- In the Answer layout direction column, choose whether the question and answer are stacked or side-by-side.
- To change where your application stores the answer to a question on the clipboard, enter a property name in the Answer Property column that is in the same class path as the question.
- To validate the answer that users provide at run time, enter the name of an edit validate rule in the Validation column that is in the same class path as the question.
- Save and close the file but do not change the file format.
Previous topic Creating questions in bulk Next topic Importing a question template