Viewing 3 reply threads
  • Author
    Posts
    • #6488
      bigoper
      Member

      Hey All,

      I got a back-end form, with 5 fields that use conditions.
      The fields are “select” and reading the data from taxonomies.

      for example: a list with options, one of the options is “other”.
      when “other” is selected, I need a textarea \ select field to open.

      I’ve tried with and without the (default value for the select list) ,’value’=> ‘other’

      So far all good.
      I got the value of the “select” field that I wish to compare to.

      My problem:
      out of the 5 fields that I test for a Condition, only one of them is working 🙁

      Please advise.

      Thanks,
      A.I

    • #6489
      bigoper
      Member

      the attached files.

    • #6490
      bigoper
      Member

      The code:

      piklist(‘field’, array(
      ‘type’ => ‘select’
      ,’required’ => true
      ,’scope’ => ‘taxonomy’
      ,’tabindex’ => ’12’
      ,’field’ => ‘bag_granite_backsplash_options’
      ,’label’ => __(‘Granite BackSplash Selection’)
      ,’description’ => ‘List of well known Options.’
      ,’choices’ => array(
      ” => ‘Choose a BackSplash’
      )
      + piklist(get_terms(‘bag_granite_backsplash_options’, array(
      ‘hide_empty’ => false
      ))
      ,array(
      ‘term_id’
      ,’name’
      )
      )
      ));

      piklist(‘field’, array(
      ‘type’ => ‘textarea’
      ,’tabindex’ => ’13’
      ,’field’ => ‘bag_granite_backsplash_options_other’
      ,’label’ => __(‘Granite Stone Other Description’)
      ,’description’ => ‘Please provide a detailed description of the requested option.’
      ,’attributes’ => array(
      ‘rows’ => 3
      ,’cols’ => 50
      ,’class’ => ‘large-text’
      )
      ,’conditions’ => array(
      array(
      ‘field’ => ‘bag_granite_backsplash_options’
      ,’value’ => ‘1437’ // other = 1437
      )
      )
      ));

    • #6495
      bigoper
      Member

      All good now,

      I was able to fix this with:
      1. latest version of PIKLIST 0.9.9…
      2. Adding ‘scope’ to:
      – field
      – field conditions
      3. Please upload the latest PIKLIST version to WORDPRESS.ORG.

      Thanks you for an amazing product.
      Avi

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