We have some php that we need to run if form validation has detected errors, however I can't find any piece of data or hook that will let us know that there was an error. The Gform pre render hook looked to be hopeful, but the Form Object that it has access to does not have any specific piece of data saying that validation failed.
Is there anyway to know this?
Our form is on a de-activated tab when the page loads, and if there is an error I need to be able to activate it. I was able to use the gform_pre_submission hook to activate it after a successful submision, but not if there is an error.
thanks!