Survey
Jump to navigation
Jump to search
This page demonstrates the following features:
- value converters. A schema can define a converter at any level by which to convert the value forth and back via a callback. In this case the converter is used to generate a "survey" schema from the output of the survey builder (2nd form)
describedBylink relation (see json-schema-hypermedia) to interactively load the schema definition for the selected input (see JsonSchema:SurveyBuilderLinear)- use of conditions (if/then/else) to conditionally display the input select based on the data type
x-collapsibleto group rows and column items in the survey builder
Essentially the survey builder (2nd form) generates the schema appropriate to display the survey in the first form thanks to a converter
Schemas:
- JsonSchema:SurveyBuilderLinear
- JsonSchema:GeneratedSurvey (generated by the 2nd form + value converter)
Parser function:
{{#jsonforms:Default
|schema=GeneratedSurvey
|edit={{FULLPAGENAME}}/Survey
|inline_css=width:800px;
|title=Survey
}}
loading form
|schema=SurveyBuilderLinear
|edit=JsonSchema:GeneratedSurvey
|slot=main
|return_page={{FULLPAGENAME}}
|inline_css=width:800px;
|hide_header=true
}}
loading form
See also
- Demo JsonForms
- Comments
- ConditionFlow
- Captcha
- Contact Form
- Survey
- Text editors
- SMW Ask query builder
- Wikispeech
- Interactive demos
- Interactive JSON-Schema-Test-Suite
- Form Builder (requires permissions)
- Schema Builder (requires permissions)
- Docs: https://www.mediawiki.org/wiki/Extension:JsonForms