sisyphus
sisyphus copied to clipboard
Submit clears data although data is only validated
Hi,
I am using Wordpress with Ninja Forms (they have a demo site here: http://demo.ninjaforms.com ). Now I tried to add Sisyphus to such a form and everything seems to work fine except the fact that local storage is cleared when I hit submit, although the form is only validated but not actually submitted. So the following happens: I fill in some data, hit submit and get the validation errors, now when I navigate to a different page and come back to the form page the form is empty and data is lost, although I have not "really" submitted the data. Any ideas what might be causing this behavior and how to solve the problem?
Thank you in advance.
Anguel
I expect that it is "normal" that Sisyphus cannot determine if the submit is validated or actually submitted. So I will have a look at catching some JS event to make this work properly. Thanks a lot for the nice Sisyphus script!
@Anguel How you can got your issue resolved? I have the same usecase and I want to prevent that autoRelease function, whether the form is not really correct thenthe user hit the submit
button and when is correct, use the autoRelease function in the correct way.
Thanks!