FormIt seems to happily allow multiple form submissions on page refresh, if you do not redirect to a different page. Is there no comparable function to eForm's &protectSubmit, which would display a message if you tried to resubmit the exact same values via page refresh?
I've tried redirecting to the same page, and also using FormItRetriever to check if the success message is not empty and attempt to hide the form.
-
☆ A M B ☆
- 24,524 Posts
You might try the &clearFieldsOnSuccess property.
Hm. No, that doesn't work, is 1 by default anyway.
I did find this
https://forums.modx.com/thread/86404/formit-preventing-duplicate-posts-i-e-eform-s-protectsubmit-for-evo
Also, markwillis82 had this to say "we have added a CSRF input in our forms on some sites, it stops double submission and spam... 2 birds - 1 stone"
[ed. note: sottwell last edited this post 11 years, 4 months ago.]