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.

Form Questions /

userforms - duplicate submissions issue


Reply


2 Posts   259 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, 149 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.