Question Editor API Initialization
type
Define the type of input.
Values
Attribute path custom_question_types.editor_schema.attributes.my_custom_attribute_name.type
Type string
Possible values
-
"string"
- a simple text input (text only). -
"number"
- a simple number text input (number only). -
"boolean"
- a toggle box. -
"editor"
- a Rich Text Editor box (like our stimulus). -
"question"
- render the current Custom Question by reusing the same Question JSON and its providedwhite_list
(the attributes you want to render in this current Question instance). When you attempt this Question, its value will be passed into the Question JSON instance - think of the rendered multiple choice Question in the Validation section of the Question Editor, when you attempt it, its response values like [0, 1, 2] will be used as thevalidation.valid_response.value
as we use the schemas ofvalidation.valid_response.value
in Question. -
"array"
- an array of configurable properties. E.g. TheOptions
array in our Multiple Choice Question, where you can add/remove options to create an array of strings, for example. If this is set, the items property should be used to define the element for each array entry. -
"object"
- for nesting further attributes.
this is a mandatory property.