FormRenderPropsPremium
Contains props that are passed to the form's render function.
Name | Type | Default | Description |
---|---|---|---|
allowSubmit |
|
Shows whether the form can be submitted. When true and form is valid, you can submit. When true and form is invalid, you can show all validation errors. Use this to control the disabled state of Submit buttons. jsx
| |
errors |
|
Contains current validation errors organized by field path. jsx
| |
modified |
|
Shows whether any field value has changed from its initial value. Becomes true when any field value changes for the first time. jsx
| |
onChange |
|
A callback for emitting changes to a specific field without using the Field component (see example).
jsx
| |
onFormReset |
|
Resets the form to its initial state. jsx
| |
onSubmit |
|
Submits the form when called. Use this with the onClick property of Submit buttons. jsx
| |
submitted |
|
Shows whether the form has been successfully submitted. Use this to detect if the user is leaving before saving changes. jsx
| |
touched |
|
Shows whether the user has interacted with any field. Becomes true when any field loses focus or the user tries to submit. jsx
| |
valid |
|
Shows whether the form passes all validation rules. Becomes false if any field fails validation. jsx
| |
valueGetter |
|
A callback for getting the value of a field without using the Field component (see example). Useful for creating and modifying the UI based on the field values. jsx
| |
visited |
|
Shows whether the user has focused on any field. Becomes true when any field receives focus or the user tries to submit. jsx
|