• Resolved gigasdev

    (@gigasdev)


    Hi,
    I have two custom php forms in different pages.

    form 1 name: registration_form
    form 2 name: booking_form

    function add_custom_recaptcha_forms( $forms ) {
    $forms['my_custom_form'] = array( "form_name" => "Custom Form Name" );
    return $forms;
    }
    add_filter( 'gglcptch_add_custom_form', 'add_custom_recaptcha_forms' );

    How does this function transform to work for all forms? Do I have to duplicate the function for each form or can I include both forms in one function?

    Other question… if the function of sending the form happens in javascript, how does the control of the captcha to the click of the button? Both forms have the confirmation button connected to a javascript click function

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support andrewsupport

    (@andrewsupport)

    The code you provided is not focused on the work of reСaptcha, but on the ability to enable and disable reCAPTCHA for your custom form. To transform this function to work for all forms, it is enough to duplicate this line for each of your forms:

    
    $forms['my_custom_form1'] = array( "form_name" => "Custom Form Name1" );
    $forms['my_custom_form2'] = array( "form_name" => "Custom Form Name2" );
    

    To add reCaptcha plugin to a custom form you can follow our instruction “How to add reCaptcha plugin to a custom form on my WordPress website?”

    Plugin Support andrewsupport

    (@andrewsupport)

    Hi,

    Since there is no reply from you, we consider this topic as resolved. We hope you’ve found the solution. If you have any questions, please feel free to contact us via our Help Center – https://support.bestwebsoft.com/.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple custom forms’ is closed to new replies.