Populating a question template
Define single-answer questions that you want to create in bulk by populating a question template. You download the template in your application, and add questions by following the structure of the sample questions that the template contains.
For example, define several questions about the work experience of a job candidate that you can then use to create a questionnaire in your application.
- Download the question template:
- In the header of Dev Studio, click .
- On the Questions tab, click Import questions.
- Click Download template, and then save the
QuestionsTemplate.xlsx
file to your local machine.
- Open the
QuestionsTemplate.xlsx
file.The Sample Questions tab of the Excel file contains examples of correctly configured questions that you can import. - In the ID column, enter text that uniquely identifies the
question.If you enter the ID of an existing question, when you import the question template, your application prompts you to update or skip the question.
- In the Name column, enter a label for your question.
- Provide text for your question:
Choices Actions Use plain text - In the Question Layout column, select plain.
- In the Question Plain Text column, enter the question text.
Use styled text - In the Question Layout column, select rte.
- In the Rich text question content column, enter question text that includes HTML tags.
- Configure the answer format for your question:
Choices Actions A question that a user answers by attaching a file - In the Answer Mode column, select File.
A question that a user answers in a text area, text box, date, or date and time format - In the Answer Mode column, select freeform.
- In the Answer Freeform Format column, select an option that corresponds to your answer format.
A question that a user answers by selecting one or more available options - In the Answer Mode column, select checkbox.
A question that a user answers by selecting one of available options - 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 your application displays choices stacked or side-by-side.
A question that a user answers by selecting one of available options in a drop-down 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.
A question that a user answers in a custom section that you provide - 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.
- In the Answer layout direction column, choose whether your application displays the question and answer stacked or side-by-side.
- To change where your application stores the answer to a question on the clipboard, in the Answer Property column, enter the name of a property that is in the same class path as the question.
- To validate the answer that users provide at run time, in the Validation column, enter the name of a validation rule that is in the same class path as the question.
- Optional: To add more questions to the template, repeat steps 3 through 9.
- Save and close the file but do not change the file format.
Previous topic Creating questions in bulk Next topic Importing a question template