Hello,
I'm using MODX 1.05 with the snippet eForm and the parameter eFormOnBeforeMailSent to invoke a function to update a database table.
Everything works fine but if the user clicks back on the browser and re-submit the form, I get a message that the form was already submitted but the function associated with the event eFormOnBeforeMailSent is invoked one more time creating duplicate data in the database.
Is there a way to prevent the function to be re-run once the eForm has already be submitted?
Thanks for your help and time
Thanks for your reply. The &protectSubmit parameter by default is set to 1. The form display a message when it was already submitted but the function associated with the paramter eFormOnBeforeMailSent is always re-run...
Thanks using both protectSubmit and submitLimit works fine. I was only using protectSubmit.