Hide fields on multiple parent pages & hiding groups

Support MB Conditional Logic Hide fields on multiple parent pages & hiding groups

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1682
    totalmarctotalmarc
    Participant

    I'm trying to hide a field on multiple parent pages, I can't get it to work like this:

    'hidden' => array('parent_id', array(31,35,37)),

    Is there a way to make this work?

    I'm also trying to hide groups, but can't seem to make it work, like this:

    array(
    	'id'     => 'buttons_group',
    	'name'   => __( 'Buttons', 'rolling' ),
    	'type'   => 'group', 
    	'clone'  => true,    
    	'sort_clone' => true,
    	'hidden' => array('parent_id', 31),
    	'fields' => array(

    This will not hide the group, I can hide individual fields in the group, but the group and clone button always remain.

    Thanks!

    #1684
    Tan NguyenTan Nguyen
    Participant

    Hi bro,

    To hide a field from one of these parent pages, try in operator instead of equal. Equal means parent id should be 31 AND 35 AND 37. in means parent id in one of these values. So please change to:

    'hidden' => array('parent_id', 'in', array(31,35,37))

    About the bug when you hide groups, thank you for reporting, we're going to release new patch for that annoying bug.

    Best regards

    Tan Nguyen

    #1856
    totalmarctotalmarc
    Participant

    Thanks for this, it worked. It seems hiding groups after the latest update (1.08) is not working yet?

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hide fields on multiple parent pages & hiding groups’ is closed to new replies.