AboutSupportDeveloper GuideVersion 22.3.18
interface Form<T> {
    displayFieldRequirementStatus?: boolean;
    fields: readonly T[];
}

Type Parameters

Hierarchy (view full)

Properties

displayFieldRequirementStatus?: boolean

Controls that display of (Required) or (Optional) labels next to form fields.

fields: readonly T[]

A collection of form fields.

 [
{
key: 'phone',
type: 'string',
label: 'Phone',
helperText:
'Must be in the following formats 123-456-7890, 123 456 7890, (123) 456 7890 or 1234567890',
widget: {
type: 'Text'
},
validation: {
required: {
arg: true
}
}
},
{
key: 'email',
type: 'string',
label: 'Email',
helperText: 'We will use this email to send you the report after we crawl your website',
widget: {
type: 'Text'
},
validation: {
required: {
arg: true
}
}
}
]