Prevent Duplicate Entries From BizForm

ANKIT MISTRY asked on April 29, 2014 05:30

Hello, In our E-Commerce Site we are facing issue of multiple entries from BizForm. We have used a BizForm in normal way but sometimes we are getting Same user data multiple times only Reference # is diffferent. Also there is only 1 to 5 seconds difference between two entries.So here it looks like users pressing submit button twise or something. can any one help us to prevent this in bizform.

Regards, Ankit.

Recent Answers


Jakub Kadlubiec answered on April 29, 2014 06:06

Hi,

it is possible that user pressed Submit button twice. You can include this JavaScript snipped on the page with BizForm:

jQuery(document).ready(function() {
    jQuery(".FormPanel input[type='submit'], .form-horizontal input[type='submit']").click(function() {
        var $button = jQuery(this);
        $button.click(function() { return false; });
        $button.attr('onclick', 'return false;');
        return true;
    });
});

it should disable the Submit button after first click. jQuery library has to be included as well.

0 votesVote for this answer Mark as a Correct answer

ANKIT MISTRY answered on April 29, 2014 09:20

Hi Jakub, Thanks for your replay. We can do this but i have used CaptchaCode on form so if user enters wrong captcha code then also it will disable submit button. And then user can not resubmit the form after entering correct captcha code.

0 votesVote for this answer Mark as a Correct answer

Jakub Kadlubiec answered on April 29, 2014 10:15

What kind of captcha control do you use? Do you validate the captcha code on the client side? In that case you should check if the form data are valid (including captcha) and do not disable button if user entered something invalid.

0 votesVote for this answer Mark as a Correct answer

ANKIT MISTRY answered on April 29, 2014 12:02

I am using Kentico`s Inbuilt form

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.