Thanks for the post but in my case it worked with the filter gform_pre_render