defaultOnSubmissionWarningsRequireConfirmation
Overview
Default implementation for onSubmissionWarningsRequireConfirmation hook.
Renders the server warnings into the form (as messages) so they are visible behind the dialog, then opens the confirmation controller and resolves to the user's choice. Returning true triggers a single resubmission that acknowledges the warnings; false leaves the form unsaved with the warnings still displayed.
Signature
defaultOnSubmissionWarningsRequireConfirmation(options)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| options | object | yes |
options Properties
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| confirmation | ConfirmationController | The confirmation dialog controller. | ||
| error | ConfirmationRequiredError | The 409 error. | ||
| formContext | FormContext | The form context. |
Returns
Promise
- True if the user confirmed and the save should be retried.
Source
client/lib/use/useObjectForm.js:199