laraib
laraib

Reputation: 631

How to provide dependency value in visual composer

I tried to use like this

'dependency' => array(
     'element' => 'service_layout',
     'value' => array ('Standard'),
     'not_empty' => true,
 ),
"description" => __( "Select your desired Image position", "js_composer" )

Its working fine when even I select any value inside service_layout param, but I want it to show up only once there is 'Standard' Value inside service_layout param ... any one guide me how to achieve that please ???

Upvotes: 0

Views: 1743

Answers (1)

Maulik Kanani
Maulik Kanani

Reputation: 652

'dependency' => array(
     'element' => 'service_layout',
     'value' =>'Standard',
 ),
"description" => __( "Select your desired Image position", "js_composer" )

Would you please check it with above code ?

Upvotes: 2

Related Questions