Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The syntax of this document is based on the “defacto-standard” JSON schema described here:
JSON Schema.

Here is an example of a simple Form Schema which describes the “person” Form Model:

...

File Upload and Preview Widget

Also see: File Upload.

By default, a file upload widget will be rendered like this in the form:

...

Note that contentEncoding is set to outbound-url and therefore the attribute content contains a url pointing to the PDF file data to be loaded by the forms framework on form load. In this example this is the path to a property in the property store which contains the file as attachment. The name of the attachment is, by default, the same as the name set by the name attribute of the content reference. In this example this is invoice-123.pdf.

Internationalization (i18n)

The title and description of schema fields (widgets) can be internationalized (= translated to different languages). See here for more details, how this works: Internationalization (i18n).