Skip to content

Is there a way to know if a form's changes were saved #1105

Answered by wadamek65
simplecommerce asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @simplecommerce , apologies for the late response.

Unfortunately, nothing comes to my mind that you could use out of the box. The submitted variable will only tell you whenever something was submitted regardless of whether it succeeded or not.

A possible solution to your problem could be extending the Form that you are using with a custom one and overriding the onSubmit method to set an additional flag within state that you could then pass onto your context.

Would such a solution help solve your problem?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@simplecommerce
Comment options

Answer selected by simplecommerce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants