We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38787
    • 74 Posts
    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.
      • 28042 ☆ 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.]
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org