• Resolved strategeek

    (@strategeek)


    Hello. I have added captcha on my custom ajax form.

    When I submit the form, I then hide it with CSS and display another div container with results.

    Then people can return to the initial form and submit again _with the same captcha_ <- this is not good.

    How to reset captcha after after ajax success?

    I was trying to add cptch_reload() function after ajax success: but it doesn’t work like that.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Thank you for contacting us.

    Try to add the following code to your js file. Please don’t forget to change your form object there:

    $( document ).on( 'submit', 'your_form_class_or_id', function() {
        cptch_reload( $( this ).find( '.cptch_reload_button' ) );
    }

    Or you can add this code to the ‘success’ callback action of your AJAX function:

    cptch_reload( $( document ).find( 'your_form_class_or_id .cptch_reload_button' ) );

    If the problem remains, please provide us with a code you are using.

    For more convenience, you can do it via our Help Center (https://support.bestwebsoft.com/) in order to receive a faster reply.

    Sincerely,
    BestWebSoft Support Team

    • This reply was modified 8 years, 3 months ago by bestwebsoft.
    Thread Starter strategeek

    (@strategeek)

    Great! Thanks a lot!

    Hi,

    We are glad that everything is fine now.

    Feel free to contact our support team with any questions in future.

    Sincerely,
    BestWebSoft Support Team

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to reload CAPTCHA after ajax form submit’ is closed to new replies.