-
Notifications
You must be signed in to change notification settings - Fork 585
Closed
Description
Version: public static $_version = '3.5.9';
PHP 5.3.29 | MySQL 10.0.23 | WordPress 4.4.2
Premium Support purchase (unfulfilled)
Payment: 3111, PayPal,
Purchase Key e3ae8933363497d531adc3ae0b93bc9d
Problem: Using the checkbox field and Required argument does not work as expected.
Desired result: check box selection with the required argument shows a text field when a checkbox is TRUE and hides a field when a checkbox is FALSE.
Detailed description of Issue with Code and Video:
*_VIDEO: *_http://www.screencast.com/t/z8c2GGXdC6
I have already reviewed the following, to no avail:
#2687
#2594
#2482
#2429
Code:
array(
'id' => 'product_meta_controls',
'type' => 'checkbox',
'title' => __( 'Product Metta Control', 'zaga_theme' ),
'options' => array(
'product_age' => 'Show Age levels',
'product_cat' => 'Show Product Category',
'product_sub' => 'Show Subjects',
'product_buy' => 'Show External Link', // should turn ON product_external_text
'product_mor' => 'Show Internal Link',
),
),
array('required' => array('product_meta_controls', 'contains', array('product_buy', '==', 1)),
'title' => __( 'Product: External Link button text', 'zaga_theme' ),
'id'=>'product_external_text',
'type' => 'text',
),
Variations tried
'required' => array('product_meta_controls', 'contains', array('product_buy', '!=', 0)),
'required' => array('product_meta_controls', 'contains', array('product_buy' => 1)),
// and several items on the issue links above
Metadata
Metadata
Assignees
Labels
No labels