Change Gravity Forms Submit Button Text After Submission

Dec 16, 2021

2 Min. Read

Share URL

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

Symptoms

Your forms take a few seconds to process after clicking submit, and you want to make it more apparent, instead of just depending on the little AJAX spinner, that the submission is processing.

What if your button text could automatically change from “Submit” to “Sending, please wait…”, or something like that?

How To Fix It

Using the code snippet below, you can programmatically configure the submit button text to change after the button has been clicked.

https://gist.github.com/chrisegg/26f55402dc493fcfdbe4adb94966d010

You can add this code to your themes functions.php file or use a functionality plugin like WPCodeBox.

Additional Tips

You do not need to disable the button! In Gravity Forms 2.5 the submission handler includes protection against multiple clicks submitting the form multiple times. When the submit button is clicked that sets a block to prevent further clicks submitting the form again.

If your form submissions are slow, that is an issue that is not usually caused by Gravity Forms. Even if you have 1000 form fields and 50% of them use conditional logic, that’s just a bad idea, all browsers will struggle to load that form.

Need More Help?

If you still need help, feel free to use the comments or chat options below.

If you have an active Gravity Forms license, you can also open a support ticket here.

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

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

Related Post

Styling Gravity Forms Radio Buttons Like Toggle Switch

Problem I recently had someone ask if it was possible to style radio buttons like a toggle switch in Gravity...

Mar 17, 2026

4 min. read

Automatically Switch from a Registration Form to a Waitlist in Gravity Forms

This tutorial shows you how to automatically switch from a registration form to a waitlist form in Gravity Forms using entry limits or attendee tracking with a custom shortcode.

Sep 29, 2025

4 min. read

Using AI + Gravity Forms to Streamline Job Applications

Hiring is tough. Sorting through dozens, or even hundreds, of job applications is time-consuming, repetitive, and prone to human bias. That’s where combining Gravity Forms, Gravity Flow, and AI automation comes in.

Sep 26, 2025

2 min. read

Turn Gravity Forms Image Choice Field into carousel

Problem Recently, I saw a Gravity Forms user looking for a way to style the new Image Choice field. Specifically,...

Jul 14, 2025

3 min. read

Offer Subscription With One-Off Add-On Product Options with Gravity Forms

Want to offer a subscription + one-time add-ons in Gravity Forms? Here’s how to do it using Stripe’s setup fee feature in a single payment feed.

Mar 24, 2025

2 min. read

Gravity Forms A/B Split Testing

Problem We recently received an interesting request from a Gravity Forms user who wanted to know how to do A/B...

Mar 21, 2025

5 min. read