Viewing 0 reply threads
  • Author
    Posts
    • #6666
      Fernando Lourenço
      Participant

      piklist(‘field’, array(
      ‘type’ => ‘select’
      ,’scope’ => ‘post_meta’ // Not used for settings sections
      ,’field’ => ‘box’
      ,’label’ => ‘Example Field’
      ,’description’ => ‘This is a description of the field.’
      ,’attributes’ => array(
      ‘class’ => ‘text’
      )
      ,’choices’ => array(
      ‘box1’ => ‘1’
      ,’box2′ => ‘2’
      )
      ));

      piklist(‘field’, array(
      ‘type’ => ‘select’
      ,’scope’ => ‘post_meta’ // Not used for settings sections
      ,’field’ => ‘itens’
      ,’label’ => ‘Itens’
      ,’attributes’ => array(
      ‘class’ => ‘text’
      )
      ,’choices’ => array(
      ‘item01’ => ‘Item 1′ ***(visible only is field box = 1)
      ,’item02’ => ‘Item 2′ ***(visible only is field box = 2)
      ,’item03’ => ‘Item 3′ ***(visible only is field box = 1)
      ,’item04’ => ‘Item 4’ ***(visible only is field box = 2)
      )
      ));

      In this case the condition does not apply to the field (hide / uhide), but the items in the select field.
      Is there a way to do this?

Viewing 0 reply threads
  • You must be logged in to reply to this topic.