Proposed Form Format
Structure
Schema Object
{ "schemaName": "householdRegistration", "schemaVersion": "1.0.0", "schema": { ... }, // Possibly rename to property schema "actionSchema": { ... } }
The schemaName
is used to identify the form to be displayed on upcoming pages after navigation. The schemaVersion
will be used to update/create existing stored schema.
Property Schema
The property schema determines the fields that appear in the form and specifies the validation and display criteria.
TextField
type:
string
DatePicker
type:
string
format:
date
DateTimePicker
type: string
format: datetime
NumberTextField
type:
integer
/double
FilePicker
type:
string
format:
fileUrl
Switch/Checkbox
type:
boolean
format:
Switch
/Checkbox
DropdownField
type:
string
format:
dropdown
enums:
string[]
CheckboxGroup
type:
string[]
enums:
string[]
NumberSpinner
type:
integer
/double
increment:
integer
/double
RadioGroup
type:
string
format:
radio
enums:
string[]
Validators
The following validators are supported
minLength/maxLength
min/max:
required
Add Comment