Tagged: ,

Viewing 1 reply thread
  • Author
    Posts
    • #857
      nateskin
      Member

      Hello everyone!.

      First of all,

      I want to apologize for my English and also want to give thanks for the idea of ​​the plugin. It has adapted to my needs so far.

      I have a doubt (or problem, whatever you want to see it). I would like to display multiple fields when selecting a particular select. And I made a conditional as indicated by the instructions but not working properly.

      I put the example in case you want to try:

      piklist( 'field', array(
        'type' => 'select',
        'field' => 'my_field',
        'label' => 'My Field',
        'value' => 'Option 1',
        'choices' => array(
      	'Option 1' => 'Option 1',
      	'Option 2' => 'Option 2',
        )
      ) );
      
      piklist( 'field', array(
        'type' => 'text',
        'field' => 'my_field_conditional_1',
        'label' => 'My Field Conditional 1',
        'conditions' => array(
      	array(
      	  'field' => 'my_field',
      	  'value' => 'Option 2'
      	)
        )
      ) );
      
      piklist( 'field', array(
        'type' => 'text',
        'field' => 'my_field_conditional_2',
        'label' => 'My Field Conditional 2',
        'conditions' => array(
      	array(
      	  'field' => 'my_field',
      	  'value' => 'Option 2'
      	)
        )
      ) );

      You know you can be?

      A greeting and thanks.

    • #858
      Steve
      Keymaster

      @nateskin– Your code is fine. Piklist has a bug when multiple fields are conditionally based on one field. We’re working on a fix.

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