You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Tip**: `Create` and `Edit` inject more props to their child. So `SimpleForm` also expects these props to be set (but you shouldn't set them yourself):
713
+
**Tip**: `Create` and `Edit` inject more props to their child. So `SimpleForm` also expects these props to be set (you should set them yourself only in particular cases like the [submission validation](#submission-validation)):
714
714
715
715
*`save`: The function invoked when the form is submitted.
716
716
*`saving`: A boolean indicating whether a save operation is ongoing.
**Important**: Note that asynchronous validators are not supported on the `<ArrayInput>` component due to a limitation of [react-final-form-arrays](https://github.com/final-form/react-final-form-arrays).
1331
1331
1332
+
## Submission Validation
1333
+
1334
+
The form can be validated by the server after its submission. In order to display the validation errors, a custom `save` function needs to be used:
**Tip**: The shape of the returned validation errors must correspond to the form: a key needs to match a `source` prop.
1372
+
1332
1373
## Submit On Enter
1333
1374
1334
1375
By default, pressing `ENTER` in any of the form fields submits the form - this is the expected behavior in most cases. However, some of your custom input components (e.g. Google Maps widget) may have special handlers for the `ENTER` key. In that case, to disable the automated form submission on enter, set the `submitOnEnter` prop of the form component to `false`:
0 commit comments