Form Componentt

Form Example

Propertiest

PropertyTypeDescription
Initial StatecodeForm initial values
DebouncenumberHow often the "OnChange" event should be called. Number in milliseconds
Enable Reinitializeboolean
Actionsaction

The initial state property is not required, but when needed, it should be in the following structure:

return {
    "FIELD_NAME": "INITIAL_VALUE"
}

Where FIELD_NAME would be the name of each input, select or checkbox.

Actionst

Form Actions

EventDescription
On SubmitTriggered when the user submits the form
On ChangeTriggered when any field inside the form changes its value, and the Debounce property is defined

Childrent

The Form component should be used as a parent component for the following components: