Example: User Registration
Form to create a new user account.
{
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"username": {
"type": "string",
"title": "Username"
},
"email": {
"type": "string",
"format": "email",
"title": "Email address"
},
"terms_accepted": {
"type": "boolean",
"title": "I accept the terms and conditions of use of the service."
}
},
"required": [
"name",
"username",
"email",
"terms_accepted"
]
}
}
WIP: Work In Progress.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"username": {
"type": "string",
"title": "Username"
},
"email": {
"type": "string",
"title": "Email address",
"format": "email"
},
"terms_accepted": {
"type": "boolean",
"title": "I accept the terms and conditions of use of the service."
}
},
"required": [
"name",
"username",
"email",
"terms_accepted"
]
}
{
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"label": "Name",
"scope": "#/properties/name"
},
{
"type": "Control",
"label": "Username",
"scope": "#/properties/username"
},
{
"type": "Control",
"label": "Email address",
"scope": "#/properties/email"
},
{
"type": "Control",
"label": "I accept the terms and conditions of use of the service.",
"scope": "#/properties/terms_accepted"
}
]
}
null
Tags: #withSchema #withOutUiSchema #withOutData #onlySchema #requiredWithOutDefaults
003_signup