Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

userforms - duplicate submissions issue


Go to End


2 Posts   1371 Views

Avatar
acktivate

Community Member, 11 Posts

29 May 2014 at 10:26am

Edited: 29/05/2014 10:28am

I want to add an alert like "processing" to userforms page for a visitor if they try to click the submit button more than once. People completing forms are clicking submit multiple times resulting in multiple submissions for the same form data. what are some options to prevent this?

Thanks.

Avatar
camfindlay

Forum Moderator, 267 Posts

29 May 2014 at 5:32pm

Hi this is probably more a general web development question that SilverStripe specific but you could use jquery to achieve this, check out this article: http://www.mkyong.com/jquery/how-to-disable-submit-button-after-clicked-with-jquery/

Hope that helps.