Follow us on

Codestar Support Forum » WordPress Plugins » Codestar Framework

button_set using string options of 'true' or 'false' and dependency not working

  1. Hi, I have noticed that if using the value string of 'true' or 'false' on button_set options, then the dependency on another field does not work.

    E.g.

    array(
      'id' => 'opt-btn-set',
      'type' => 'button_set',
      'title' => 'My Button Set',
      'options' => array(
        'true' => 'Yes',
        'false' => 'No',
        'maybe' => 'Maybe',
        'etc' => 'Etc'
      ),
    ),
    array(
      'dependency' => array( 'opt-btn-set', '==', 'true' ),
      'type' => 'slider',
      ...
    ),CopyCopied!
    Posted 5 months ago #