When ajax is enabled, the gform_pre_render filter breaks when there's a validation error. How do I fix this?
When ajax is enabled, the gform_pre_render filter breaks when there's a validation error. How do I fix this?
Please provide a link to the site with the form in question so we can see what you're talking about.
It's possible you need to gform_post_render filter to run your code after a validation error: http://www.gravityhelp.com/documentation/page/Gform_post_render
This jQuery hook is fired every time the form is rendered to allow custom jQuery to be executed. This includes initial form load, going to the next/previous page on multi-page forms, form rendered with validation errors, confirmation message displayed, etc.