Skip to main content

FormData

Form data.

Type

Object

Properties

NameTypeDescription
formatstringThe date format string (e.g. MM/DD/YYYY). Present only for date picker fields.
keystringThe form key. If the current form is a radio button, then this field contains the group key.
labelstringThe checkbox label. Present only for checkbox fields.
langstringThe date language/locale name (e.g. en-US). Present only for date picker fields.
optionsChoiceOption[] | CheckboxOption[]The list of available options for the field. Present for checkboxes, radio button groups, dropdown lists, and combo boxes.
rolestringThe form role.
roleColorstringThe form role color in hex format.
tagstringThe form tag.
typeFormSpecificTypeThe form type.
valuestring | booleanThe current field value.

Example

Specify the form data that can be used to create the form.

// How to create a form data indicating its key and value.

// Create a data to add it to the form.

let formData = {
key: "CompanyName",
value: "OnlyOffice",
type: "text"
};