Gravity form accepting duplicate entries even after updating to version 2.5.16

Hi there,
We have updated gravity forms plugin from to 2.5.16, to get rid of duplicate entries bug. But we are still getting duplicate entries on our form.

The issue of duplicate entries arises only when there is reCAPTCHA in the form. We are using reCAPTCHA v2 invisible.

Also, if you know any other way to stop duplicate entry, let us know.

Our client is waiting for this bug to be fixed, so please look into this.
Thank you.

We tried a way to disable button for 5 seconds using following code snippet.

add_filter( 'gform_submit_button_179', 'camworks_disable_button_after_submit', 10, 2 );

function camworks_disable_button_after_submit( $button, $form ) {
    $dom = new DOMDocument();
    $dom->loadHTML( '<?xml encoding="utf-8" ?>' . $button );
    $input = $dom->getElementsByTagName( 'input' )->item(0);
    $onclick = $input->getAttribute( 'onclick' );
    $onclick .= "this.form.submit(); this.disabled=true; this.value='Submitting your response'; setTimeout(() => { this.disabled=false; this.value='Request Demo' }, 5000);";
    $input->setAttribute( 'onclick', $onclick );
    return $dom->saveHtml( $input );

But it is working only when there is no captcha in the form, else it gives this error: The reCAPTCHA was invalid. Go back and try it again.

Have you tried Gravity Wiz ‘Limit Submissions’ plugin? Works great.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.