- This topic has 3 replies, 1 voice, and was last updated 5 years, 9 months ago by
bigoper.
-
AuthorPosts
-
-
May 12, 2016 at 5:28 pm #6488
bigoperMemberHey 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 -
May 12, 2016 at 5:29 pm #6489
bigoperMemberthe attached files.
-
May 12, 2016 at 5:31 pm #6490
bigoperMemberThe 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
)
)
)); -
May 14, 2016 at 1:55 pm #6495
bigoperMemberAll 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
-
-
AuthorPosts
- You must be logged in to reply to this topic.