Tagged: ,

Viewing 2 reply threads
  • Author
    Posts
    • #2992
      palash140
      Member

      in this code
      setting name is theme_options
      please help me to solve it

      piklist('field',array(
        'type'=>'group',
        'field'=>'books',
        'label'=>'Books Collection',
        'fields'=>array(
          array(
            'type'=>'checkbox',
            'field'=>'current_books',
            'label'=>'Select the current book',
            'choices'=>
                array(
                'js'=>'Javascritpt',
                'php'=>'PHP'
                )
          ),
          array(
            'type'=>'text',
            'field'=>'js',
            'label'=>'Enter the js book',
            'conditions'=>array(
              array(
                'field'=>' books:current_books',
                'value'=>'js'
              )
          )
          )
        )
      ));
    • #2993
      palash140
      Member

      please reply fast, it is quite urgent for me,

    • #2994
      Steve
      Keymaster

      @palash140– If I take your code and add it to the Piklist Demos; piklist-demos/parts/settings/field-text.php, it works perfectly. So it’s not your field code.

      Please make sure:
      1) You registered your setting properly >
      2) Your comment block is correct>

      Let us know if you still need help.

Viewing 2 reply threads
  • The topic ‘theme option page conditions in group not working’ is closed to new replies.