This article covers these topics:
- Info message question
- Detailed Info Message
- Single-choice question
- Multiple-choice question
- Slider scale question
- Ranking question
- Open text question
- Open numeric question
- Multiple open text question
- Multiple open numeric question
- Menu question
- Date/time question
- Photo capture question
- Audio capture question
- Video capture question
- Video display question
- Barcode scanner question
- Feedback question
- Multitype question
Info message question
A text message to display information to the user.
Attributes
|
Attribute |
Description |
|
type |
info |
|
text |
Question text. |
|
show_full_image |
Defaults to true, when set to false the image is displayed in 1/3rd of the screen |
|
disable_back_button |
Defaults to false, when set to true the back button will be disabled on the question. |
|
alias |
Question alias. |
Detailed Info Message
A text message to display information to the user. Suitable for longer texts as it allows splitting text into multiple paragraphs and adding icons to the different paragraphs.
Attributes
|
Attribute |
Description |
|
type |
detailed_info |
|
text |
Question text. |
|
disable_back_button |
Defaults to false, when set to true the back button will be disabled on the question. |
|
alias |
Question alias. |
Sub elements
<item>: one 'item' per paragraph.
Single-choice question
A single-choice question is a question where the respondent is given a list of alternatives from which he or she can select only one answer.
Attributes
|
Attribute |
Description |
|
type |
single |
|
max_select |
Always "1" on this question type |
|
text |
Question text. |
|
order |
Choice order: fixed, randomize_every_entry, asc (alphabetical). |
|
enable_lookup |
Defaults to false, when set to true the app will display a text field where the respondent can search for a specific choice. |
|
hide_choices_on_lookup |
Defaults to false, when set to true the respondent will see no choices until they type any matching character in the search field. |
|
optional_response |
Defaults to false, when set to true the question becomes optional and the next button is enabled as soon as the question is presented. |
|
disable_back_button |
Defaults to false, when set to true the back button will be disabled on the question. |
|
alias |
Question alias. |
Sub elements
<choice>: for more information, see question and question choice.
Multiple-choice question
A multiple-choice question is a question where the respondent can select one or more answers.
Attributes
|
Attribute |
Description |
|
type |
"multi" |
|
text |
Question text. |
|
alias |
Question alias. |
|
max_select |
Maximum number of answers a user can select. |
|
min_select |
Minimum number of answers a user must select before continuing. |
|
order |
Choice order: fixed or randomized. |
Sub elements
<choice>: for information, see question and question choice.
Slider scale question
A single-choice question that is displayed as a slider.
Ranking question
A multiple-choice question, where the user can specify the order of the choices. For example, first choice, second choice, etc.
Open text question
Asks the user to enter text. You can set the permitted response length with the attributes given in the table below.
Attributes
| Attribute |
Description |
|
min_length |
The minimum number of characters the user must enter in order to continue. |
|
max_length |
The maximum number of characters the user may enter. |
|
Input_constraints |
For details, see open text question. |
Open Numeric question
Asks the user to enter a number. This question type treats the entered value as an integer. The range of an integer is -2,147,483,648 to 2,147,483,647. Also keep in mind that any leading zeros are removed (e.g. 020 becomes 20). If you need to record leading zeros (e.g. for a telephone number), we recommend using an open text question instead.
Attributes
|
Attribute |
Description |
|
min |
The minimum value the user can enter. |
|
max |
The maximum value the user can enter. |
Multiple Open Text question
<category label="Personal" id="1" anchored="false" exclusive="false" alias="">
<choice id="1" label="Name" anchored="false" exclusive="false" alias=""/>
<choice id="2" label="Gender" anchored="false" exclusive="false" alias=""/>
</category>
<category label="Address" id="2" anchored="false" exclusive="false" alias="">
<choice id="3" label="Country" anchored="false" exclusive="false" alias=""/>
<choice id="4" label="City" anchored="false" exclusive="false" alias=""/>
</category>
</question>
Multiple Open Numeric question
<category label="Monthly Charges" id="1" anchored="false" exclusive="false" alias="">
<choice id="1" label="Rent & Bills" anchored="false" exclusive="false" alias=""/>
<choice id="2" label="Installments " anchored="false" exclusive="false" alias=""/>
</category>
<category label="Life Necessities " id="2" anchored="false" exclusive="false" alias="">
<choice id="3" label="House shopping" anchored="false" exclusive="false" alias=""/>
<choice id="4" label="Cloths shopping" anchored="false" exclusive="false" alias=""/>
</category>
</question>
All the attributes are accessible through the UI.
| Attribute | Description |
|---|---|
| top_label | Label text. |
| sum_to_target | The default value is false; it is set to true once the total target value is reached. |
| total | The total target value. |
Menu question
For more information about scripting with menu please see Menus with advanced logic.
Date/Time question
This question type asks the user to enter a date, time or both.
Attributes
|
Attribute |
Description |
|
type |
"date" |
|
label |
|
|
mode |
DATE, TIME or DATETIME |
Photo Capture question
This question type asks the respondent to take a picture using his or her device's camera.
Audio Capture question
This question type asks the respondent to record audio using his or her device.
Video Capture question
This question type asks the respondent to take a video using his or her device's camera.
Video Display question
This question type displays a video clip to the respondent.
Barcode scanner
This question type asks the respondent to scan a barcode using his or her device's camera.
Feedback Question
This question type consists of 5 star rating and an open text field for elaborating.
Multitype Question
This question type asks the respondent to enter multiple integer, decimal, or boolean (true/false) questions. It also allows showing top and bottom text labels. The various question types and buttons are added as question sub-elements "item". Items must have unique ids and be arranged in numerical order.
<item id="1" type="label" label="Top label text can be added here"/>
<item id="2" type="numeric" label="Number (integer)" optional_response="true" min="1" max="6" default="3" input_type="integer"/>
<item id="3" type="numeric" label="Number (decimal)" optional_response="false" min="10" max="100" input_type="decimal" decimal_places_allowed="2"/>
<item id="4" type="boolean" label="True / False"/>
<item id="5" type="label" label="Bottom label text can be added here"/>
</question>