Skip to content

Using the checkbox field and Required argument does not work as expected + Paid Support #2857

@zagarskas

Description

@zagarskas

Support Hash:
http://support.redux.io/?id=YP24Nb07d%2F2vE9IQTlRq405GTGv1AUo6ToNl8O%2Buo%2FRCMqzgn6Ng5fmFyWB8xT5SKvDzNOEYZ2K15ShyD9PEI9fEeXvMk6pl3psFy3NkyfVjC8UPzP%2FTsjJXMRLcM0Qq

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions