acf-codifier icon indicating copy to clipboard operation
acf-codifier copied to clipboard

Conditional logic not working properly with groupable fields

Open villesiltala opened this issue 7 years ago • 0 comments

If you pass for example a true/false field object for the add_condition_logic() method to control visibility of a groupable field, a repeater in this case, the condition will hide the subfields of the groupable field but not the field itself. If you change the add_condition_logic() method parameter to a field key of a true/false field, then the whole repeater field is hidden if the condition is met.

Here are screenshots of the condition logic functionality when using the object as the parameter. The repeater should be hidden if the true/false is set to "Ei".

Condition not met: nayttokuva 2018-10-16 kello 16 26 39

Condition met: nayttokuva 2018-10-16 kello 16 26 47

villesiltala avatar Oct 16 '18 13:10 villesiltala