OpenFin Workspace API
    Preparing search index...

    Interface Form<T>

    interface Form<T extends FormField | FormFieldWithRequiredLabel> {
        displayFieldRequirementStatus?: boolean;
        fields: readonly T[];
    }

    Type Parameters

    Hierarchy (View Summary)

    Index
    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
    }
    }
    }
    ]