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

Change Gravity Forms Submit Button Text After Submission

  |  by Chris Eggleston

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.

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
Chris is not just a Gravity Forms enthusiast; he's a dedicated father and loving husband. As the proud owner of WP Mantis, he's on a mission to simplify the WordPress experience for site owners. He brings a unique perspective to the Gravity Forms community.

Advertisement

5 3 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments