Is there a way to know if a form's changes were saved #1105
-
Hi, I was wondering if there is a way to know when a form's changes were saved. For example: I have a form with autosave on, every time I make a change, the form is submitted. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @simplecommerce , apologies for the late response. Unfortunately, nothing comes to my mind that you could use out of the box. The A possible solution to your problem could be extending the Form that you are using with a custom one and overriding the Would such a solution help solve your problem? |
Beta Was this translation helpful? Give feedback.
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?