You may want to merge this into my previous thread, as I thought I'd solved it, but haven't :(
Problem arises when unsetting a required field - it's still required. So, I need something extra here, but not sure what.
Any help really appreciated.
You may want to merge this into my previous thread, as I thought I'd solved it, but haven't :(
Problem arises when unsetting a required field - it's still required. So, I need something extra here, but not sure what.
Any help really appreciated.
I figured it out. It requires a two step process:
1. Unset the field using gform_pre_render if it is not needed
2. Validate it using if it is needed
I've posted my code here for anyone who is interested.