Question Editor API Initialization
conditions
Array of objects containing a conditional value, and attributes to be shown when the value is met.
The structure for each condition object can be seen below.
Examples
"conditions": [{
"attributes": {
"min_selection": {
"description": "Defines how many options should be selected at least when giving an answer. 0 means an unlimited amount."
"min": 0,
"name": "Minimum number of responses",
"required": false,
"type": "number"
},
"max_selection": {
"description": "Defines how many options can be selected at most when giving an answer. 0 means an unlimited amount."
"min": 0,
"name": "Maximum number of responses",
"required": false,
"type": "number"
}
},
"value": true
}]
Values
Attribute path custom_question_types.editor_schema.conditional_attributes.conditions
Type array[object]
Properties
-
attributes object
The attributes to be shown when the condition is met.
Each attribute listed must contain the full definition of your custom attribute as defined in the
editor_schema.attributes
initialization option. -
value string
The value which the attribute_key should match, in order to show the conditional attributes.