Add body class after form-submission

Hello everyone,
I need to change the order of certain elements so that the form-message is on top when the form is submitted, i do that with css order. For this i need to add a class “sent” to the body or a specific html element. How can i achieve that with gravity forms?
Best, Pascal

Hi Pascal,

Could you please elaborate on this? Also, kindly share the webpage URL, a screenshot, or a screen recording so I can take a closer look and assist you in achieving it.

Hello @toothless

I found a solution with the help of the support. You can make use of the filter gform_confirmation: gform_confirmation - Gravity Forms Documentation

With that, you can make use of javascript to dynamically alter the content of the page after the text confirmation is loaded.

With this i added a class to the body of the page and changed the order of the elements with css order when the class is set.

Best, Pascal

1 Like