Support Forum
Support › Meta Box Conditional Logic › ✅Visible/hidden with id outside group › Reply To: Visible/hidden with id outside group
I tried to make a custom callback but it's seems doesn't work too.
'visible' => array("my_custom_callback()", true),
and JS
console.log('my custom callback init');
function my_custom_callback(){
console.log('my custom callback test!');
return false;
}
In console I can see "My custom callback init" but never "my custom callback test!" and the element with the visible option is always visible.
Something broked with conditionnal logic ? :s
I found a fix in "conditional-logic.js" in the plugin folder.
Line 234 to 236
if ( ! dependentFieldSelector ) {
// return;
}
If I comment line 235, my condition work.