Gravity Forms Tutorial

Gravity Forms Tutorial Plays from YouTube

A free, step-by-step tutorial by Ferdy. Watch it right here or on YouTube.

Important links

Get Gravity Forms

Related: Learn more about WordPress

Gravity Forms tutorial: build powerful forms in WordPress

Gravity Forms is a premium WordPress plugin that helps you build complex forms in minutes, without any programming knowledge. You can connect it to services like WooCommerce, PayPal and MailChimp, create polls and even build dynamic forms that change based on what people fill in.

In this tutorial I build two forms. First a simple contact form with a nice layout, spam protection, a confirmation message and a custom notification email. Then a more advanced wedding photography and videography availability form with email routing, an automatic reply to the couple, conditional logic and multiple pages with a progress bar.

Good to know: I recorded this video in 2017. Gravity Forms has had many updates since then, so the form editor, the settings screens and the prices will look different today. The ideas in this guide, like routing, conditional logic and multi page forms, still work the same way.

Buy and install Gravity Forms

Gravity Forms is not free. In the video there were three licences: one site, three sites, or unlimited sites, and I took the single site licence, which was about $39 at the time. Use the link at the top of this page to get it.

  1. After buying, download the plugin zip file.
  2. In WordPress go to Plugins, Add New, Upload Plugin, choose the file, install and activate.
  3. Go to Forms. Paste the licence key you got by email and click Next.
  4. Choose your currency in the global settings and finish the setup.

Create a contact form and place it on a page

Click Create Form, give it a title and start dragging fields in. You have standard fields like single line text and drop down, and advanced fields like name, address and file upload. For my contact form I used:

  • A Name field with first and last name. I made it required (you see an asterisk) and set the sub label placement to Above inputs.
  • An Email field. You can turn on confirmation so people type it twice.
  • A Phone field.
  • A drop down “What is the question about?” with photography, videography, web design and other.
  • A Paragraph text field without a label, with the placeholder “Type your message”.

To place the form, edit your contact page, click in the text block and use the Add Form button. Select the form, untick title and description if you do not want them, and insert it.

Fields next to each other with CSS classes

An email field across the whole width looks too long. Gravity Forms has ready made CSS classes for this. Click the field, go to Appearance, Custom CSS Class, and type gf_left_half for the email field and gf_right_half for the phone field. For three fields on one row use gf_left_third, gf_middle_third and gf_right_third. Search for “Gravity Forms CSS ready classes” to see all options with examples. In the wedding form I also changed the Field Size from medium to large to make a field use the full width.

Form settings, confirmations and notifications

In Settings, Form Settings I renamed the form and changed the button text from Submit to “Get in contact”. You can also use an image as the button. Hover over any question mark to see what a setting does. A few other options:

  • Save and continue: lets people finish a long form later.
  • Schedule form: make the form available only for a certain time, for example for a one day discount.
  • Anti-spam honeypot: I always turn this on. It adds an invisible field. People do not fill it in, bots do, and then Gravity Forms knows it is spam. Your visitors do not have to solve a reCAPTCHA.

Under Confirmations you choose what people see after sending: a text, a page (for example a thank you page with a video) or a redirect to a URL. Under Notifications you set the email you receive. My tips: use your own email address as the From email, so the message does not end up in spam, set Reply To to the email field so you can reply straight to the visitor, and write a clear subject. Instead of all fields you can build your own message with the merge tags for name, email, phone and message.

Every submission is also saved under Entries. Even if you delete the email, you can still read it in your dashboard.

An advanced form: routing, auto reply and conditional logic

My second form is a wedding availability form. Couples fill in the names of the bride and groom, a “number where I can call you” (that sounds friendlier than phone number), email, wedding date with a date picker, hours of photography, how they found us and a message. Then a required drop down: photography, videography, or photography and videography.

Send the email to the right person

In the admin notification choose Configure Routing. If the choice is photography, send it to me. If it is videography, send it to my wife. If it is both, send it to the info address.

Reply to the couple automatically

Add a new notification, set Send To to the email field, and use merge tags in the subject and message: “Thank you for your form about wedding” plus their chosen service, and “Hi” plus both names. I also added a link to our brochure from the media library.

Show fields only when needed

  1. Add a drop down “How many photographers do you want?” with one or two.
  2. Go to Advanced and tick Enable Conditional Logic.
  3. Show the field if any of the rules match: the service equals photography, or equals photography and videography.
  4. Duplicate it for videographers and set the rules to videography or both.

Split a long form into pages

Drag the Page field in between your fields to start a new page. Click the start paging area to show a progress bar and give each page a name, like couple information, service information and wedding date. My form now has three steps with Next buttons, and I changed the button text to “Check the date”.

Frequently asked questions

Is Gravity Forms free?

No, it is a paid plugin with yearly licences. If you want a free option, see my tutorial on Contact Form 7.

How do I stop spam without reCAPTCHA?

Turn on the anti-spam honeypot in the form settings. It catches bots with an invisible field.

What is conditional logic?

It means a field only appears when someone picks a certain answer. In my wedding form the “how many photographers” question only shows when photography is chosen.

Why do my form emails go to spam?

Often because the From address does not match your domain. Use your own website email as the From email and the visitor’s email as Reply To. For more tips, browse the knowledge base or the WordPress tutorial.

7 thoughts on “Gravity Forms Tutorial”

  1. 2020-05-06 05:31:31 says:

    Hi Ferdy,

    Love your tutorials. How do I create email subscriber intake form that works with elementor & mailchimp?
    Thanks a million!

    Best,
    Dan Lee

  2. 2020-05-16 05:29:42 says:

    Hi, Mr Ferdy.
    I am impressed by your wide knowledge on these software subjects. I am new to WordPress and all its plugins available. I am a newbie to the world of e-commerce site building.

    Of late, I tried to follow examples on how to create date calculation from date of birth using Gravity Form. The form turned out well except it wasn’t calculating even though I made sure the (Date of Birth ID:1) field was correctly merge-tagged to the Age field {Date of Birth:1:age} (the Date of Birth id was 1).

    When I selected the date picker (eg 12/25/2019) from te created form, , the age field returned 12,25,2019 instead of the age’s answer.

    May you help ? It is only for this question. No more question in the future.

    I have checked all sources, including disabling any themes or plugins etc but to no avail.

    Hope you are kind to comment on the issue

    Thanking you.

    Regards,

    Gary (Singapore)

    My email: cltgary797@gmail.com

    My website has not been uploaded yet

  3. Hi Ferdy, I think your tutorial videos are great, straight to the point, clear and helpful. I have an issue with Gravity forms webhooks, in that I dont understand how to do it. Ive had a few freelancers look at it … and make it worse! I really need help with webhooks if you can point me in the right direction please. Thanks Jonathan

    1. Thanks so much! ???? WP101 was a classic – that’s high praise! Hope this gets you up and running with Gravity Forms. It’s a powerful plugin!

    2. Thanks so much! ???? WP101 was a classic – that’s high praise! Hope this gets you up and running with Gravity Forms. It’s a powerful plugin!

Leave your comment

Your email address will not be published. Required fields are marked *

Never miss
a tutorial

Every tutorial lives on YouTube. Subscribe and never miss a new one.

Black Friday A full year of Hostinger web hosting + free domain for about $30 with coupon code FERDY1 year hosting + free domain: about $30 with code FERDY Ends Dec 14 Get the deal Ad