• Hi Michel…

    Congratulations for your great work!

    I put the code to prevente CF7 duplicate submissions on my site, and it worked grate. Thank you very much for that

    But I was wondering if you could help me to go further… I need to show the error message and, at the same time, fade out all the form when script detect the duplicate.

    Could you help with the code, Michel?

    Thank you in advance…

    Juan

    to

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    The code example I provided is all in the backend and it tells Contact Form 7 that there is an error. Contact Form 7 then displays the error message on the web page. CFDB never touches the form web page itself. Anything you want to do on the page is a question for Contact Form 7.

    Thread Starter jjiglesias

    (@jjiglesias)

    Ok, Mike.
    Thanks for your answer.

    Otherwiswe, if I delete on the example code the lines that identify the form, is it posible that the system works for all the forms in the site?

    I mean deleting this lines:

    “2 – * @param $formName string”

    “14 – $exp->export($formName, $atts);”

    “28 – $formName = ’email_form’; // Change to name of the form containing this field”

    Dou you think that it could work?

    Plugin Author Michael Simpson

    (@msimpson)

    This refers to: https://cfdbplugin.com/?page_id=904

    Set:
    $formName = '*';

    And I think it will work for forms on the site with the designated $fieldName

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Duplicate Submissions from CF7’ is closed to new replies.