Skip to content

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

NameTypeRequiredDescription
optionsobjectyes

options Properties

NameTypeRequiredDefaultDescription
confirmationConfirmationControllerThe confirmation dialog controller.
errorConfirmationRequiredErrorThe 409 error.
formContextFormContextThe form context.

Returns

Promise

  • True if the user confirmed and the save should be retried.

Source

client/lib/use/useObjectForm.js:199

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2