Title: Multiple custom forms
Last modified: November 8, 2021

---

# Multiple custom forms

 *  Resolved [gigasdev](https://wordpress.org/support/users/gigasdev/)
 * (@gigasdev)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/multiple-custom-forms/)
 * 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](https://wordpress.org/support/users/andrewsupport/)
 * (@andrewsupport)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/multiple-custom-forms/#post-15051389)
 * 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](https://wordpress.org/support/users/andrewsupport/)
 * (@andrewsupport)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/multiple-custom-forms/#post-15114299)
 * 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/](https://support.bestwebsoft.com/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multiple custom forms’ is closed to new replies.

 * ![](https://ps.w.org/google-captcha/assets/icon-256x256.gif?rev=2565249)
 * [reCaptcha by BestWebSoft](https://wordpress.org/plugins/google-captcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-captcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-captcha/)
 * [Active Topics](https://wordpress.org/support/plugin/google-captcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-captcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-captcha/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [andrewsupport](https://wordpress.org/support/users/andrewsupport/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/multiple-custom-forms/#post-15114299)
 * Status: resolved