Introduction

With the json and json-type argument for a form you can use a JSON schema version to render a FlexForm. It currently only supports a one object deep schema, except when using instances. Use it together with the _edit or _create json options if you want to do an all JSON layout.

json-type argument

The value for the json argument depends on the json-type. json-type can be "string", "url" or "title".

json-type="string"

Then FlexForm expects the json argument to be the actual JSON Schema

json-type="url"

Then FlexForm expects the json argument to a full url to the actual JSON Schema

json-type="title"

Then FlexForm expects the json argument to be a page in the Wiki holding the actual JSON Schema

json argument

As described above it can be three different ways of giving FlexForm the JSON Schema.

FlexForm JSON Schema variant

Here is where we explain what JSON schema variant FlexForm understands.


This will upload a file. If the filename is DCM10001.jpg, the file will be uploaded as pictures-DCM10001-732138982.jpg, The filepage will have Information of the test file. Finally using error_id and verbose_id, means the user should add two div's, one with an id="div-error" and one with an id="div-verbose" with these name themselves.

<input type="file" id="file-upload" name="test" target="pictures-[filename]-[mwrandom]" pagecontent="Information of the test file" error_id="div-error" verbose_id="div-verbose" />