There is a case I need to hide a field using Meta Box Conditional Logic and set it as required, and the validation should executed only when the field is visible.
Anh, does this apply to fields hidden via the CSS display: none;?
We have some fields that are hidden using that method but still need validation (they are populated programmatically with some custom javascript). It was working fine but this or some other recent change has broken it. If I remove display: none; the validation works.
Recently we've created an update to validate the field if it is visible. If a field is hidden by conditional logic, it will be ignored when running the validation. I'm going to create a request to support this case if the user needs to validate the hidden fields.
This has totally screwed up our data coming through multiple front-end forms and we need an immediate fix. Do I need to revert to an old version or is there a change I can make to the code to revert this temporarily until a fix is released.