-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Hi I 'm workin on a Gutenberg block and the conditional logic doesn’t works.
Error in console: An unknown field is used in condition - “crb_show_socials”
in my functions :
Field::make( 'select', 'crb_show_socials', 'Show Socials' )
->add_options( array(
'yes' => 'Yes',
'no' => 'No',
) ),
Field::make( 'text', 'crb_facebook', 'Facebook URL' )
->set_conditional_logic( array(
'relation' => 'AND', // Optional, defaults to "AND"
array(
'field' => 'crb_show_socials',
'value' => array('yes'),
'compare' => 'IN',
)
) ),
Any ideas? is it a bug?
Metadata
Metadata
Assignees
Labels
No labels