Display Spinner when submitting a non-ajax form

is there a way to show a spinner when a form has been submitted built into gravity? or a sensible way to do it? I have a form that takes a little white to submit. It is not an ajax form.

Thanks

Will

Doing so is not a feature of Gravity Forms. I’m not aware of any ready to use third-party add-on for it either. So you would need to add your own custom code to the form to implement it.

If you feel you need assistance implementing this, we would recommend contacting a freelance developer.
Gravity Forms are official partners with Codeable, who are the #1 WordPress outsourcing service. They can provide quality development from hand-picked Gravity Forms specialists for any project size and budget. Additionally, they can also provide you with a no obligation estimate of what the project may cost up front. You can reach them via this link.

You can also post to our Community Forum Job Board, We do not vet any of the individual developers there, it is an open forum for all, but our community is certainly full of talented folks!

We hope this helps get you to where you need to go!

Is there any issue with catching the onclick of the submit button? will that hinder gforms?

So something like this:


add_action( 'gform_enqueue_scripts', 'your_prefix_add_scripts' );
function your_prefix_add_scripts($form) {
	    echo '<script>
			$(document).ready(function(){
				const button= document.querySelector(".gform_button");
				button.addEventListener("click", (e) => {
					 	e.target.value = "Sending";
						e.target.parentElement.classList.add("gform-sending");
						// e.preventDefault();
				});
			});
        </script>';
	}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.