im trying to add a spinner on the “next” button click, cause sometime some of my step take time to load cause of my API call.
I just want the user to know that the form is loading, cause for now nothing happend when the user click on the next button, and if one of my API is offline, it take some time to have the next step of my form loading.
You can use the second filter in my previous reply to customize where you want the spinner to be placed. There’s no Gravity Forms filter or feature to gray out the page, that’s something you would need to handle it with our own custom JavaScript code.
To run custom JavaScript code in your form you can add an HTML field, just wrap the code between script tags HTML script tag You’ll want to use gform_post_render gform_post_render - Gravity Forms Documentation to ensure the code can still run if the form fails validation etc.