Build a contact form with Gravity Forms

  • gravity-forms
  • forms
  • contact
  • site-editing

Updated

To make a contact form with Gravity Forms, create a form with Name, Email, and message fields, set where the notification email goes, then add the form to a page with the Gravity Forms block. The steps below also send visitors to a thank-you page you can count in analytics.

Create the form

  1. Go to Forms → New Form (the wording varies a little between Gravity Forms versions).
  2. Give it a clear name, such as Contact.
  3. Add fields. A basic contact form needs Name, Email, and Paragraph Text for the message.
  4. In the Email field's settings, mark it as required.
  5. Label the message field Comments, or whatever suits your site.
  6. Save the form.

Send visitors to a thank-you page

After someone submits, Gravity Forms shows a short message by default. A thank-you page is clearer for visitors, and you can count its visits in analytics as form submissions.

  1. Go to Pages → Add Page, create a page such as Thank you with a short message, and publish it.
  2. Back in your form, go to Settings → Confirmations.
  3. Edit the default confirmation.
  4. Change the type from text to Page and choose your thank-you page.
  5. Save.

How do I get an email for each submission?

  1. In the form settings, open Notifications.
  2. Edit the admin notification and set the address that should receive submissions.
  3. To include what the visitor typed, use the merge tag menu in the message box to insert field values.
  4. Save.

You can add more notifications later, such as an automatic reply to the visitor.

Put the form on a page

  1. Edit the page where the form should appear, usually your Contact page.
  2. Add the Form / Gravity Forms block.
  3. Choose your form in the block settings.
  4. Choose whether to show the form title and description.
  5. Publish or update the page.

Submit a test entry. You should land on the thank-you page and get the notification email.

View submissions

Go to Forms → Entries and choose the form to read its entries. To download them as a spreadsheet, use Forms → Import/Export. See Export Gravity Forms entries to a spreadsheet.

Tips

If your site runs on Dirigible

Dirigible styles Gravity Forms to match the rest of your site, so fields, labels, and submit buttons follow Styles → Forms and Styles → Buttons in the Customizer. Every form also gets Gravity Forms' honeypot and a submission speed check against spam, with nothing to set up. See Gravity Forms.