🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 20, 2026

How to Customize the Gravity Forms Submit Button: Text, Loading State, Live Total and Sticky Bar

GravityExtra
How to Customize the Gravity Forms Submit Button: Text, Loading State, Live Total and Sticky Bar

The submit button is the last thing a visitor touches on your form, and in Gravity Forms it is also one of the least flexible: one line of text, the look of the theme, and nothing to tell the visitor that the click was heard. Customers press it twice, wonder whether a payment went through, and miss it entirely on a phone because it sits far below the last field. This tutorial shows how to take control of every button of a form, and how to fix the usual problems, with the Submit Button Customizer add-on from GravityExtra.

A Book a studio visit form with name, email and message fields and a wide blue submit button with a paper plane icon and the text Send message, rounded corners and white text
A full-width submit button with an icon, custom colours and a rounded corner.

Start With the Words on the Button

Submit is the most common label on the web and the least helpful. A button that says what happens next gets more clicks and fewer questions. Book my session, Send my request and Download the guide all tell the visitor what they get. In Form Settings you will find a new page called Submit Button. Switch on the customization for the form, type the text, and choose an icon from the bundled set. An arrow suggests going on, a check mark suggests confirming, a padlock suggests a safe payment, and a paper plane suggests sending. Put the icon before the text for actions, and after the text for movement.

Leave the text empty if you want to keep the wording of the form. That matters on multilingual sites, because the translated text of the form is then used as it is.

Size, Width and Colours Without Custom CSS

Most themes give you one button style for the whole site. A donation form may deserve a large, full-width button, a newsletter box a small one next to the input. The panel offers small, medium and large sizes, full width, and left, centre and right alignment. Colours can inherit from the theme, which is the right choice when your theme already looks good, or be set for the form: background, text, hover and focus colours, border and corner radius. The styles are scoped to the form, so the button of another form on the same page is never touched.

Colour is also where accessibility goes wrong. White text on a light yellow button looks cheerful in the colour picker and is unreadable in sunlight. Under the colour fields the add-on shows the contrast ratio of your text and background while you choose, and turns the message into a warning when it falls below 4.5 to 1, the minimum of the Web Content Accessibility Guidelines for normal text. It checks the hover state too, because a button that changes colour on hover must stay readable.

Show That the Click Was Heard

Slow servers, payment gateways and large uploads all make a form take seconds to answer. During that time a button that looks the same as before invites a second click, and a second click can mean two entries, two emails and sometimes two payments. The loading state fixes this in three ways. The button shows a spinner and a text you choose, such as Sending. The button is marked as busy for screen readers, with a polite message that says the form is being sent, and keyboard focus stays where it was. And while the form is busy, clicks, the Enter key and repeated submits are ignored before Gravity Forms sees them.

It works for AJAX forms and for forms that reload the page. If something goes wrong, for example a custom script cancels the submission, the button is released after a safety time you can set. People who ask their device for reduced motion get a very slow spinner.

Make Multi-Page Forms Feel Guided

A long form is easier to finish when every page tells the visitor where they are going. In the panel you set the text of the Next and Previous buttons for all pages, then override single pages: Start with your details, Choose your package, Review and pay. The previous button can be an outline or a plain link, so that the main action is always the strongest thing on the page. And on a page where going back makes no sense, because the visitor has already confirmed something, you can hide Previous altogether.

Let the Button Show the Price

The best moment to remind a visitor what they are agreeing to is the moment they click. If your form has a Total field, put a token in the button text: Pay {total} shows the order total that Gravity Forms calculates and keeps it up to date whenever the visitor changes a quantity, a package or an option. No code, and no second place where the price could be wrong. Give the Total field the CSS class gesb-hide-total if you do not want to show it twice.

A Book a session form with a Package drop-down set to Full session, a Total of 90 dollars and a blue submit button with a padlock icon that reads Pay 90 dollars
The button text follows the Gravity Forms total: here it reads Pay $90.00.

Rules take this further. One rule per line, with a condition, an arrow and a text. A rule that tests the total, such as total equals 0 with the text Choose a package to pay, avoids a button that says Pay zero dollars. A rule that tests a choice, such as field 5 equals Quote with the text Request a quote, turns the same form into a booking form or a quote request, and the button says which one the visitor is about to send. The first matching rule wins, and you can test a field for being empty or filled, for containing a word, and for numbers greater or smaller than a value.

total > 0 => Pay {total}
total = 0 => Choose a package to pay
field:5 = Quote => Request a quote
field:7 contains vip => Book the VIP table
field:3 empty => Tell us your name first

Tell Visitors What Happens Next, Feed by Feed

Forms that use feeds do very different things depending on the answers: charge a card, send an invoice, add the contact to a list, or create a booking. The add-on reads the active feeds of the form and lists them in the panel, each with a text box. When the conditions of a feed match what the visitor entered, the button takes the text of that feed, for example Pay by card or Get bank details. The conditions are evaluated live in the browser as the visitor chooses, so the text always matches what will really run.

Keep the Button in Reach on a Phone

On a phone a long form pushes the submit button far below the fold, and a visitor who has finished has to scroll to find it. The sticky submit bar fixes the buttons of the current page to the bottom of the screen on small screens. You choose the width where it starts and its background, it respects the safe area of phones with a notch, and on larger screens nothing changes.

A Setup You Can Copy

  1. Open the form, then Settings, then Submit Button, and switch the customization on.
  2. Write a text that says what happens: Send my request, or Pay {total}.
  3. Pick an icon and a size, and choose full width if the form is narrow or lives in a sidebar.
  4. Choose colours, and read the contrast message. Aim for the green message on both the normal and the hover state.
  5. Leave the loading state on, and write a short text such as Sending.
  6. For a multi-page form, name each next button after what comes next, and hide Previous where it does not belong.
  7. Turn on the sticky bar if the form is long, then test on a real phone.

Works With the Forms You Already Have

The add-on rebuilds the button with the same id, the same data attributes and the same click handler that Gravity Forms prints, so validation, AJAX, Save and Continue, conditional logic on the button and other add-ons keep working. It handles the Orbital theme and the legacy markup, several forms on one page, and forms drawn again after an AJAX answer. Forms where the switch is off keep exactly the button they had, and if you deactivate the add-on your forms go back to their old buttons. It makes no outside requests at all.

For Developers

Three filters let you change the configuration of a form, the way a button is rebuilt, and the data given to the front script, for example to switch the customization off for one form or to force an icon.

// Never customize one form, whatever its settings say.
add_filter( 'gesb_config', function ( $cfg, $form ) {
    if ( 12 === (int) $form['id'] ) {
        $cfg['enabled'] = false;
    }
    return $cfg;
}, 10, 2 );

// Change how a button is rebuilt: here every submit button gets the check icon.
add_filter( 'gesb_button_options', function ( $opts, $kind, $form ) {
    if ( 'submit' === $kind ) {
        $opts['icon'] = 'check';
    }
    return $opts;
}, 10, 3 );

Frequently Asked Questions

Do I need to write CSS?

No. Text, icon, size, width, colours, corner radius, the loading state and the sticky bar are all settings. The add-on prints a small style scoped to each form.

Does the loading state work without AJAX?

Yes. On a form that reloads the page the button shows the spinner and the text until the browser leaves the page, and repeated clicks are ignored.

Can the button text change by itself while the visitor types?

Yes. Use the total token, a rule, or a text per feed. The text updates when the visitor changes an answer.

Which Gravity Forms versions are supported?

Gravity Forms 2.9 or newer with WordPress 6.5 and PHP 7.4 or newer. The add-on is tested with Gravity Forms 2.9 and 3.1.

The last click deserves as much care as the first question. Tell people what it does, show them that it worked, and make it easy to reach.

Make the last click count

Text, icons, colours, a loading state, page by page buttons and a sticky bar for every Gravity Forms button.

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