Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #667
      pers
      Member

      This should work (?), but doesn’t:


      piklist( 'field', array(
      'type' => 'radio'
      , 'field' => 'select_conditional'
      , 'value' => 'option1'
      , 'label' => 'A or B'
      , 'list' => false
      , 'choices' => array(
      'option1' => 'A'
      , 'option2' => 'B'
      )
      )
      );

      piklist( 'field', array(
      'type' => 'text'
      , 'field' => 'a_field'
      , 'label' => 'A'
      , 'conditions' => array(
      array(
      'field' => 'select_conditional'
      , 'value' => 'option1'
      )
      )
      )
      );

      piklist( 'field', array(
      'type' => 'text'
      , 'field' => 'b_field'
      , 'label' => 'B'
      , 'conditions' => array(
      array(
      'field' => 'select_conditional'
      , 'value' => 'option2'
      )
      )
      )
      );

    • #670
      Steve
      Keymaster

      @pers– Conditionals are currently getting a rewrite. Your code will work afterwards.  Unfortunately, it’s taking a bit longer than we wanted.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.