I've searched for this, and made several attempts to resolve it without sucess.
Essentially, I am using a single form and populating fields dynamically with post meta from the post where the form is embedded. That's working fine.
However there is one field I want to appear ONLY when a certain post meta value is set.
I tried to use gform_pre_render to achieve this, but I am realising that post parameters (I used $global posts; in my function) are unavailable. Is this the case? If so, is there any later point at which a field could be unset if it's not needed?
Thank you.