Survey

From Wikisphere
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)
  • describedBy link 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-collapsible to group rows and column items in the survey builder


Basically the survey builder (2nd form) generates the schema appropriate to display the survey in the first form thanks to a converter


Schemas:


Parser function:

{{#jsonforms:Default
|schema=GeneratedSurvey
|edit={{FULLPAGENAME}}/Survey
|width=800px
}}
loading form


|schema=SurveyBuilderLinear
|edit=JsonSchema:GeneratedSurvey
|slot=main
|return_page={{FULLPAGENAME}}
|width=800px
}}


loading form


See also