Custom Fields
Re-Envisioned
Support General Metabox Multiple Dependency

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 1 year, 2 months ago.

  • Creator
    Topic
  • #9208

    ismail
    Participant

    Hi, i want to use multiple dependency as like this:

    array(
        'type'          => 'textfield',
        "heading"       => esc_html__( "Thumbnail Title", 'mascot-core' ),
        "param_name"    => "show_title",
        'dependency'    => array(
                                array('element' => 'show_thumb', 'value' => 'true'), 
                                array('element' => 'display_type', 'value' => array('grid', 'masonry', 'carousel') )
                            ),
    ),
    

    But it is not working. So, how can i add multiple dependency.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #9214

    Anh Tran
    Keymaster

    Hello,

    Please use Meta Box Conditional Logic for this purpose. The extension allows you to show/hide a field based on other fields’ values.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.