Dear Marko,
unfortunately the script is not working as it should.
I already added the first line of the code, sorry I lost it here in the copy/paste.
The limit is set to 2, but this is what happen at the third submission:
- He get redirected to the page where are explained the reasons of such limit (this step is the only one that work as it should)
- Such submission unfortunately get recorded in the "managed records".
- Such submission unfortunately get emailed to the user and to the admins
- The form is displayed in a module, hosted in the home page and the contact page. From the third submission on, the user won't be able any more to access the home page and the contact page because he will be redirected to the page where are explained the reasons of the limit!
So, at this stage, my question is. There is any script that, once the limited is reached, can simply show a message in the module (replacing the original form) and say "Hey, you reached the limit", instead of making the home page unaccessible?
You know the thanks message that appears in the module after the submission. When you get the limit, a similar message could stay there, always, even the user refresh, in order to making impossibile a new submission.
If you have any more ideas please let me know,
Thanks,
Best,
Robbie Baggio