I have a thankyou page after user fills in form.
If they hit refresh on the browser it will submit form again.
How do I prevent that in Matrix? Using v4.6.0
I have a thankyou page after user fills in form.
If they hit refresh on the browser it will submit form again.
How do I prevent that in Matrix? Using v4.6.0
I think this is just the nature of any HTML form. The browser will warn the user that it will submit the form again, and if they hit okay, then you are out of luck.
The only option I can see if here is redirect them to another page away from the form.
Very vague memory... isnt there something you can do in javascript to make the browser throw away its history so the repost wont happen? If so that could be embedded in the thankyou page.
In version 4.16.2 there was a feature introduced where you can set the submission time threshold on a form to prevent SPAM and users submitting again after their first submission. Maybe this could limit the refresh to a certain degree at least. Look for "Spam Prevention: Submission Time Threshold" under http://manuals.matrix.squizsuite.net/custom-form/chapters/form-contents#form_contents_screen.
I think this is just the nature of any HTML form. The browser will warn the user that it will submit the form again, and if they hit okay, then you are out of luck.
Using a unique key generated with the form (similar to the one on the matrix login form) that is required for submission & expired once used is a simple and unobtrusive solution. Off the top of my head I can't think of any reasons why this functionality couldn't be added as an option to the custom form.
Using a unique key generated with the form (similar to the one on the matrix login form) that is required for submission & expired once used is a simple and unobtrusive solution. Off the top of my head I can't think of any reasons why this functionality couldn't be added as an option to the custom form.
yeah was looking at that but we can't do that with our current matrix setup.
thanks everyone for responses anyhow.