Forums

submit form only once

marcielo 05 Aug, 2010
Is there a way to prevent a form getting submitted more than twice. Some people have a tendency to click twice or more on the submit button. I tried changing the 'Submissions limit' parameter in the 'general tab' form editor, but it didn't help. I noticed that the problem is with IE.

I tried using:
<input type="submit" onclick="this.disabled = true" value="Save"/>


But then I get no database record.
GreyHead 05 Aug, 2010
Hi marcielo,

I suggest that you use the 'Submissions limit' setting on the Form General tab. You can set this to 30 seconds or maybe a few minutes to block repeated submissions.

Bob
marcielo 09 Aug, 2010
As I mentioned I did change the 'Submissions limit' - I forgot to write how many seconds, in this case 60 seconds.
GreyHead 09 Aug, 2010
Hi marcielo,

Not sure what else to suggest. The anti-flooding link should work Ok but it uses the Joomla session to store the last time so I guess that may not be working correctly with IE??

You can probably disable the Submit button if you use the onSubmit event. Using onClick may block the validation and stop the from submitting. There has been another thread about this.

Bob
marcielo 10 Aug, 2010
I appreciate your help I'll be back as soon I get a solution
This topic is locked and no more replies can be posted.