Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Contact Form with Ajax

Create your form using a shortcode with the Google Captcha! Shortcode: [cfa_contact_form]

This is a simple plugin to generate a contact form using a shortcode.

The main feature are:

  • Google Re Captcha
  • Can assign 'Thank you Page' id in shortcode so form will be redirected to assigned Thank you page.
  • AJAX is included so form will be fade out and display Thank you message without page load only if 'Thank you Page' id is not assigned in shortcode.
  • Can assign to email id in shortcode to which contact form data will be sent, otherwise data will be sent to admin email automatically.

Following fields are included (we will give access to add/update/delete fields in our next update soon):

  • First Name
  • Last Name
  • Email Address
  • Phone
  • Message
  • Google Captcha

How to use Shortcode:

Just use : [cfa_contact_form]
This will use AJAX and data will be sent to admin email id. (Remember to add captcha keys too. Read below.)

If you want to add to email id use:
[cfa_contact_form to=""]
This will use AJAX and data will be sent to to email id which is specified in shortcode.

If you want to add redirect page id use:
[cfa_contact_form redirect_page_id=14]
This will not use AJAX and page will be redirected to the specified Thank you page.

If you want to add subject of email use:
[cfa_contact_form email_subject="Contact Request Recieved"]
This will not use AJAX and page will be redirected to the specified Thank you page.


You must have to add Google Re Captcha keys

  • site key
  • secret key

To create your website keys go to:

To add these keys use following short code:

Example. 1
If your site is in local

[cfa_contact_form google_sitekey_local='YOUR_LOCAL_SITE_KEY' google_secretkey_local='YOUR_LOCAL_SECRET_KEY']

Example. 2
If your site is in live

[cfa_contact_form google_sitekey_live='YOUR_LIVE_SITE_KEY' google_secretkey_live='YOUR_LIVE_SECRET_KEY']

Example. 3
If you dont worry about changing these keys depending on the site is in local or live, use following shortcode (recommended)

[cfa_contact_form google_sitekey_local='YOUR_LOCAL_SITE_KEY' google_secretkey_local='YOUR_LOCAL_SECRET_KEY' google_sitekey_live='YOUR_LIVE_SITE_KEY' google_secretkey_live='YOUR_LIVE_SECRET_KEY']

Author Faisal Alvi
Contributors faisal03
Tags AJAX, contact, enquiry, form, google captcha
  1. contact-form-shortcode-ajax screenshot 1

    Contact Form Layout

  2. contact-form-shortcode-ajax screenshot 2

    Form Fade Out - Thank you Message Displayed

  1. Upload plugin's zip file to the 'Add New Plugin' section in the WordPress.
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Place shortcode where you want to display shortcode.


  • Shortcode is changed from [contact_form] to [cfa_contact_form] to prevent conflicts.
  • Google Captcha is added to the form.


  • Includes shortcode [contact_form]

How to use plugin

Plugin is used using [cfa_contact_form] shortcode

Arbitrary section 1

Version 2.0.0

Requires WordPress version: 3.3 or higher

Compatible up to: 4.7.2

Last Updated 04 Jan 2017

Date Added: 03 Jan 2017


0 stars
0 ratings


Not Enough Data

Works: 0
Broken: 0