Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 8 Next »

Licenses

COMMUNITY, ENTERPRISE, CORPORATE

Since

VERSION 6.0

The type inside a JSON schema defines the data format of a field. Furthermore based on this type, form fields are rendered automatically in order to fit the defined format. The supported format types are:

Format

Configuration example

Description

Date

"myDate": {
  "type": "string",
  "format": "date"
}

Meant for a single date.
Shows-up as date picker in the form.

Text

"myText": {
  "type": "string"
}

Meant for small amount of text.
Shows-up as single-line input field in the form.

Single-List

"mySingleList": {
  "type": "string",
  "enum":["male", "female"]
}

Meant for lists where only one element can be selected from.
Shows-up as single-select drop-down in the form.

Multi-List

"someMultiList": {
  "type": "array",
  "items": {
    "type": "string",
    "enum": ["item1", "item2"]
  }
}

Meant for lists where multiple elements can be selected from.
Shows-up as multi-select drop-down in the form.

Yes/No

"myYesNo": {
  "type": "boolean"
}

Meant for yes/no (true/false) values.
Shows-up as checkbox in the form.
You can set the attribute "render":"button" in the form config in order to display this as a clickable button instead of a checkbox.

Number

"myNumber": {
  "type": "number"
}

Meant for number values.
Shows-up as number field in the form.

File

"myFile": {
  "type": "object",
  "properties": {
    "filename": 
      {"type": "string"},
    "contentLength": 
      {"type": "number"},
    "contentType": 
      {"type": "string"},
    "contentEncoding": 
      {"type": "string"},
    "content": 
      {"type": "string"}
  }  
}

Meant for file attachments to an object.
In order to show-up in a form correctly, additionally you need to configure the layout and set "render":"filepicker" or "render":"pdfpreview" in the form configuration.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.