Gravity Forms inline submit button with consent field

Aug 23, 2023

2 Min. Read

Share URL

This page may contain affiliate links. Please read my disclaimer for more information.

Since Gravity Forms version 2.6, the submit button and settings were moved into the form editor. If you have a simple form with one or two fields, you can easily create an inline form as demonstrated in this tutorial, Creating a Form with an Inline Submit Button in Gravity Forms 2.6.

However, if you want to add a consent field, below the email field, and the submit button, like the example below, you’re going to need a little CSS to make that happen.

Step 1 – Building the form

In this step, I will show you how to layout the fields in your form and the settings you need to configure.

  1. Add the following fields to your form
    • Email
    • Checkbox
  2. Set the submit button location to End of the last row
  3. Save your form

Step 2 – Adding the CSS

I have provided the CSS you will need below, however, you will need to make a simple modification to the code for it to work with your form.

  1. Copy the CSS below
  2. Add it to Additional CSS within the Customizer
    • Go to Appearance > Customize > Additional CSS
  3. Change the 1 in the code snippet with your forms ID number
  4. Change the 4 with the Email field ID number
  5. Change the 3 with the Checkbox field ID number
//Code snippet courtesy of Josh from GravityHopper.

div#gform_fields_1 {
    grid-template-columns: repeat(2,1fr);
    grid-template-areas: "gfemail gfsubmit" "gfcheck gfcheck";
}
div#gform_fields_1 #field_1_4 {
    grid-area: gfemail;
}
div#gform_fields_1 #field_submit {
    grid-area: gfsubmit;
}
div#gform_fields_1 #field_1_3 {
    grid-area: gfcheck;
}

I’ve demonstrated these steps in this video:

The Wrap Up

That’s it, just like that you have a beautiful inline form with a content field. Gravity Forms is a power form builder with a ton of potential.

You can also do this using the solution we wrote about in this tutorial, Creating a Form with an Inline Submit Button in Gravity Forms 2.5, but it does require that you enable the legacy markup feature and use the old CSS Ready Classes.

As always, if you run into any issues with the solution demonstrated in this tutorial, be sure to use the comments below.

Tags:

Photo of author
About the Author
Chris Eggleston
Husband. Father of 4. Grandpa of 2. Chief Problem Solver exploring business systems, technology, AI & faith — helping people solve real problems. @mantiswp @chrisegg

Support Chris - Donate $5

Gravity Wiz Add-Ons

Advertisement

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Related Post

How to Secure a Digital Broadcast Page with Gravity Forms Submit to Access Add-On

Live events and webinars are powerful ways to connect with your audience, but hosting them directly on your WordPress site...

Oct 3, 2025

4 min. read

Step-by-Step Guide: Sending a Gravity Forms Notification to the User

Gravity Forms notification feature allows you to send emails to users automatically when they submit a form. This is useful...

Mar 20, 2025

5 min. read

Gravity Forms Multi-Date Picker

Gravity Forms is a powerful form builder, but you might occasionally find some limitations. For example, the date picker field...

Nov 13, 2024

4 min. read

How to Migrate From WS Forms to Gravity Forms: A Step-by-Step Guide

Migrating from WS Forms to Gravity Forms can seem daunting, but with the right approach, it can be a smooth...

Oct 26, 2024

4 min. read

How to Connect Gravity Forms to SendFox: A Step-by-Step Tutorial

This tutorial will walk you through connecting Gravity Forms to SendFox and ensuring your contacts are added to your email marketing...

Oct 16, 2024

5 min. read

How to: Gravity Forms BMI Calculator

Many people don’t realize that the calculation feature is built into the Gravity Forms core plugin and is available for...

Oct 10, 2024

4 min. read