Form JSON
Form JSON defines the structure, appearance, and functionality of a form.
Last updated
Was this helpful?
Form JSON defines the structure, appearance, and functionality of a form.
Last updated
Was this helpful?
Was this helpful?
{
"title": "Race Registration",
"name": "raceRegistration",
"path": "raceregistration",
"type": "form",
"display": "form",
"components": [
{
"title": "Entrant Info",
"collapsible": false,
"key": "entrantInfo",
"type": "panel",
"label": "Panel",
"input": false,
"components": [
{
"label": "Columns",
"columns": [
{
"components": [
{
"label": "First Name",
"applyMaskOn": "change",
"validate": {
"required": true
},
"validateWhenHidden": false,
"key": "firstName",
"type": "textfield",
"input": true
}
],
"width": 6,
"size": "md",
"currentWidth": 6
},
{
"components": [
{
"label": "Last Name",
"applyMaskOn": "change",
"validate": {
"required": true
},
"validateWhenHidden": false,
"key": "lastName",
"type": "textfield",
"input": true
}
],
"width": 6,
"offset": 0,
"size": "md",
"currentWidth": 6
}
],
"key": "columns",
"type": "columns",
"input": false,
"tableView": false
},
{
"label": "Age",
"applyMaskOn": "change",
"mask": false,
"tableView": false,
"delimiter": false,
"requireDecimal": false,
"inputFormat": "plain",
"truncateMultipleSpaces": false,
"validateWhenHidden": false,
"key": "age",
"attributes": {
"size": "4"
},
"type": "number",
"input": true
},
{
"label": "Email Address",
"applyMaskOn": "change",
"tableView": true,
"validate": {
"required": true
},
"validateWhenHidden": false,
"key": "emailAddress",
"type": "email",
"input": true
},
{
"label": "Phone Number",
"applyMaskOn": "change",
"tableView": true,
"validateWhenHidden": false,
"key": "phoneNumber",
"type": "phoneNumber",
"input": true
}
]
},
{
"type": "button",
"label": "Submit",
"key": "submit",
"disableOnInvalid": true,
"input": true,
"tableView": false
}
],
},
}