Question
#
QuestionA question is the basic essence of a survey
Attribute | Type | Description | Nullable |
---|---|---|---|
id | String | Identifier | false |
templateId | String | Identifier of template | false |
originalId | String | Identifier of the question that was before (put when deleting or updating) | true |
deleted | Boolean | Question activity | false |
tenant | String | Client name | true |
name | String | Question name | false |
type | Object | Question type, see available types here | false |
conditions | List of objects | Setting the visibility of the question depending on the answer to another question | true |
calculated | Boolean | An indication that the question can be calculated | false |
required | Boolean | Sign of the obligatory answer to the question | false |
orderNum | Integer | Question order number in template | false |
updateAt | Date and time at ISO format | Date and time of the last update | true |
hint | Object | Question hint | true |
needComment | Boolean | Sign the user can leave a comment | false |
commentRequired | List of integers | Sign the user is obliged to leave a comment | true |
enableCustomAnswer | Boolean | Sign the user can add his answer (text) | false |
#
Hinttip
To add a hint use this request
Attribute | Type | Description | Nullable |
---|---|---|---|
textHint | String | Hint by text | true |
urlHint | List of objects | Hint with file | true |
#
Available typesType | description | Example as json |
---|---|---|
TEXT | Specify text value | Click to expandExample: |
NUMBER | Specify a numeric value | Click to expandExample: |
DATE | Date picker | Click to expandExample: |
DATE_TIME | Date and time picker | Click to expandExample: |
SELECT | Choose one of possible answers: | Click to expandExample: |
MULTI_SELECT | Choose many of possible answers: | Click to expandExample: |
FILE | Answer is uploaded files | Click to expandExample: |
REF | Answer is value from catalog | Click to expandExample: |
#
Display conditionsHidden questions: It is possible to hide some of the questions in the template. They will be visible to the user when choosing a specific answer to a question of the SELECT
type.
To create a hidden question: Add a conditions
object to the new question with the question id (Select) and the answer option, which should display the "hidden" question
Click to full example
In this example, the visibility of the second question depends on the answer to the first question. The second question will be displayed only if the user during the passage selects 'first answer to the question' in the first question
Example: