🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms WPBakery Elements Setup Guide

Updated 10 min read Gravity Forms Integrations A–Z
On this page
  1. What you need
  2. Install and activate
  3. How it differs from what you may already use
  4. Add a form to a page
  5. The style tabs
  6. Form box
  7. Title
  8. Labels
  9. Inputs
  10. Checkboxes & radios
  11. Buttons
  12. Validation
  13. Confirmation
  14. Multi-step
  15. Responsive
  16. Design Options
  17. Live preview and preview states in the frontend editor
  18. The popup element
  19. Where the elements are used
  20. Without WPBakery
  21. Tips
  22. Frequently asked questions
  23. Uninstall

The Gravity Forms WPBakery Elements add-on adds two elements to WPBakery Page Builder: Gravity Form, which places any of your forms on a page and styles it from the element settings, and Gravity Form Popup, which shows a form in an accessible popup opened by a button, a link, a timer or exit intent. You design the form in the same place as the rest of the page, see the real form in the frontend editor while you change a setting, and never touch a line of CSS. This guide covers the installation, every settings tab and the most common questions.

What you need

  • Gravity Forms 2.7 or newer (tested with 2.9 and 3.1), WordPress 6.5 or newer and PHP 7.4 or newer.
  • WPBakery Page Builder, installed as a plugin or bundled with your theme. The elements use the standard WPBakery element API, so they appear wherever WPBakery runs.
  • A GravityExtra licence for this add-on.

The add-on loads no outside files: its small stylesheet and the popup script come from your own site, and the popup script needs no jQuery. Apart from the licence and update checks with gravityextra.com, it makes no outside requests.

Install and activate

  1. Upload the add-on zip in Plugins → Add New → Upload Plugin and activate it.
  2. Go to Forms → Settings → WPBakery Elements, enter your licence key and press Activate License.
  3. Edit a page with WPBakery Page Builder, click Add element and open the GravityExtra category.

Without an active licence the form element still shows the plain Gravity Forms form so your pages never break, but the style settings, the Orbital colours and the editor preview states are off, and the popup element is hidden from visitors. Editors see a short note that explains how to activate the licence. Everything comes back as soon as the licence is active.

How it differs from what you may already use

  • The basic form element that comes with WPBakery lets you pick a form and turn the title, description and AJAX on or off. It has no style settings, so the form looks the way your theme and Gravity Forms make it look. The GravityExtra element adds more than one hundred style settings, tablet and mobile overrides, preview states in the editor and a popup element.
  • Our Form Styler Pro add-on styles forms from the Gravity Forms side, per form, wherever the form is shown. The WPBakery Elements add-on styles each placement from the page builder, so the same form can look different on the home page, in a sidebar and in a popup. Use whichever fits your workflow; they work side by side.
  • Our Bricks Builder element does the same job for sites built with Bricks. Sites built with WPBakery Page Builder use this add-on.

Add a form to a page

Add the Gravity Form element to a row or column. Its settings window opens on the General tab:

  • Form: a list of your active forms with their ID. Inactive and trashed forms are not listed. The chosen form is shown on the element block in the backend editor, so you can see at a glance which form a block holds.
  • Show the form title and Show the form description: off by default, because most designs put their own heading above the form.
  • Submit with AJAX: the form is sent without reloading the page. Validation errors and the confirmation appear in place.
  • Allow the same form more than once on the page: Gravity Forms shows each form once per page. Turn this on when you really need the same form twice, for example in the header and in the footer.
  • Tab index: the starting tab index of the fields, useful when several forms are on one page.
  • Form theme: use the form’s or the site’s default, or force the Orbital theme or the Gravity Forms 2.5 theme for this placement.
  • Field values: pre-fill fields that allow dynamic population, one parameter=value per line, or a=1&b=2. For example source=spring-campaign fills a hidden Source field so you can see in the entries which page a lead came from.
  • Element ID and Extra class name: the usual WPBakery fields. A link to #your-element-id scrolls to the form; with the popup element it opens the popup.
A Gravity Forms contact form placed with the Gravity Form element and styled from its settings: a white card with rounded corners and a soft shadow, a dark navy title and description, bold labels with orange required markers, light grey rounded inputs, choices in two columns and a teal rounded Send message button
A real Gravity Forms form styled only with the element settings: form box, title, labels, inputs, choices and button.

The style tabs

Every style setting is optional: leave it empty and the form keeps the look of your theme and Gravity Forms. Colours use the WPBakery colour picker. Sizes accept a number (pixels) or a value with a unit such as 1.1em, 2rem or 100%; spacing fields accept one to four values, like CSS, for example 12px 16px. Anything else is ignored, so a typing mistake can never break the page.

Form box

Background, padding, border width, style and colour, corner radius, a shadow preset (soft, medium or strong), a maximum width that also centres the form, the font family, the base text colour and the space between fields.

Title

Colour, size and weight of the form title, colour and size of the description, their alignment and the space below them.

Labels

Label colour, size, weight, letter case and letter spacing, the space below labels, the colour of the required marker, sub-labels of name and address fields, field descriptions and section titles and lines. Hide labels visually removes the labels from view but keeps them for screen readers, for compact forms that rely on placeholders.

Inputs

Background, text colour, font size, padding, the height of single-line inputs and of paragraph fields, border width, style and colour, corner radius, shadow and placeholder colour, plus the focus state: background, border colour and a focus ring colour that draws a soft ring around the field being typed in. These settings apply to text, e-mail, phone, number, date and website fields, paragraph fields and drop downs.

Checkboxes & radios

Text colour and size of the choices, the colour of the tick and the dot, the size of the boxes, the space between choices and the layout: one per row, side by side, two columns or three columns. Give the choices a card background, border, padding and radius to turn each choice into a clickable card.

Buttons

Background, text colour, size, weight, letter case, padding, border, corner radius and shadow of the submit, Next and Previous buttons, their hover colours, the width (auto or full width) and the alignment (left, centre or right). The Previous button of multi-page forms has its own background, text and border colours so it can look secondary.

Validation

The summary box at the top of the form (background, text colour, border colour, radius and padding), the message under each field (text colour, background and size), the label colour and the input border and background of fields with an error.

Confirmation

Background, text colour, size, alignment, padding, border colour, corner radius and shadow of the confirmation message. The styles keep working after an AJAX submission, because they are written for the element and not for the form markup that Gravity Forms replaces.

Multi-step

For forms with page breaks: the colour and size of the progress title, the track and fill colours of the progress bar, the percentage text colour, the bar height and corners, and for forms that show steps the label colours, the number colours and backgrounds, the current step and the completed steps.

Step 2 of 3 of a Book a class form: the progress bar title, a rounded teal progress bar on a light track, a class choice in two columns with a teal radio dot, and rounded Back and Next buttons
Multi-step forms: progress bar colours, height and corners, styled Back and Next buttons.

Responsive

Separate tablet (1024 px and narrower) and mobile (767 px and narrower) values for the form padding, title size, label size, input size and padding, button size and padding. Two switches per device: full-width buttons and one field per row, which stacks half-width and third-width fields and name and address parts so nothing gets squeezed on a phone.

The contact form on a phone: first and last name stacked one per row, smaller labels, choices in one column and a full-width Send message button
Mobile settings: stacked fields, smaller text and a full-width button below 768 px.

Design Options

The standard WPBakery Design Options tab for the margin, border, padding and background of the whole element, so the element lines up with the rest of your layout.

Live preview and preview states in the frontend editor

In the WPBakery frontend editor the element shows the real form with the Gravity Forms styles, and it is rendered again each time you change a setting, so you see the new colour or spacing at once. Scripts of the form are not run inside the editor, which keeps the editor fast and stops a half-built form from submitting.

Styling validation messages or a confirmation normally means submitting the form again and again. The Editor preview tab has a Show in the frontend editor setting with four choices: the live form, validation errors (required fields, or the first fields of the form, are shown as failed with their messages), the confirmation message (the form’s default text confirmation, or a sample text when the form redirects) and a page of a multi-page form with the page number to show. Fields hidden by conditional logic are shown in the editor so you can style them too. Visitors always get the live form, whatever this setting says.

The popup element

Add Gravity Form Popup where the trigger should appear. It has the same General and style tabs as the form element, plus a Popup tab and a Trigger style tab:

  • Open the popup with: a button, a text link, a timer after the page loads (seconds) or exit intent (when the pointer leaves the window towards the browser bar). Any link on the page to #your-element-id opens it too, so a menu item or a button in a hero section can open the form.
  • Show again after: for the timer and exit intent, how many days to wait before showing the popup to the same visitor again (0 shows it on every visit). The visit is remembered in the visitor’s browser only; no cookie is set and nothing is stored on your server.
  • Popup heading, width (it never grows wider than the screen), padding, background, overlay colour, corner radius and the colour of the heading and the close button.
  • Trigger style: the button background and hover background, the text colour, size, padding, corner radius and alignment.
  • Show the popup open in the frontend editor: on by default, so you can style the popup in place.
The Gravity Form Popup element open over a darkened page: a white rounded popup with the heading Ask the studio a question, a close button and the styled contact form inside
The popup element: a button, link, timer or exit intent opens the form in an accessible popup.

The popup is a native HTML dialog: keyboard focus moves into the form when it opens and stays inside, Esc, the close button and a click on the dark overlay close it, focus returns to the button that opened it, and the page behind does not scroll. AJAX is on by default for popups, so errors and the confirmation appear inside the open popup. With AJAX off, the page reloads after a submission and the popup opens again by itself to show the errors or the confirmation.

Where the elements are used

Forms → WPBakery Elements lists the pages, posts and templates that contain a Gravity Form or Gravity Form Popup element, with their status and the form each element shows, and links to edit them. It is a quick way to find every page a form appears on before you change or retire it. The page needs the Gravity Forms edit forms permission.

Without WPBakery

The elements are saved in your page content as shortcodes, so pages keep showing their styled forms if WPBakery Page Builder is switched off, for example during a theme change. The add-on shows a notice in the admin area while WPBakery is not active.

Tips

  • Start with the button and input colours, then the corner radius: those three settings change the look of a form the most.
  • Use the same values on all forms of a site and save the element as a WPBakery template, or copy and paste the element, to keep forms consistent.
  • Check the validation and confirmation states with the preview setting before publishing; they are the states people see when something goes wrong or right.
  • For long forms on phones, switch on one field per row and full-width buttons on the Responsive tab.
  • Popups work best with short forms: a newsletter sign-up, a call-back request or a short question.

Frequently asked questions

  • Does it change my forms? No. The add-on only adds styles around the form on that page. The form, its fields, notifications, confirmations and entries stay as they are in Gravity Forms.
  • Will my theme styles fight with the settings? The settings are written for that one element with a high priority, so they win over general theme styles. Settings you leave empty keep the theme’s look.
  • Does it work with the Orbital theme? Yes. With the Orbital theme the main colours are also passed to the theme’s own colour settings, so its hover and focus shades match.
  • Can I use custom CSS as well? Yes: give the element an Element ID or an extra class name and target it in your theme’s CSS.
  • Does it slow the page down? The element writes only the CSS of the settings you use, inline with the element, and loads a stylesheet of about 2 KB. The popup script is about 4 KB and loads only on pages with a popup.
  • Is it translated? Every text is ready for translation with the text domain of the add-on.

Uninstall

Deleting the add-on removes its licence options. The element settings live in your page content and are left untouched; if you install the add-on again, the forms look exactly as before.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr