Demo example

The best way to test the examples is to use the JSF builder and copy the examples into the Import/Export tab.

Let's create a basic form that collects user name with a minimum requirement of 3 characters and return it in a JSON object.

{
  "schema": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string", "title": "Username", "minLength": 3
      }
    }
  },
  "layout": {
    "type": "div",
    "items": [  {  "key": "name" }  ]
  }
}

Last updated

Was this helpful?