Custom Fields
Re-Envisioned
Support General Button Group Validation not working

This topic contains 1 reply, has 1 voice, and was last updated by  baraanajjar@gmail.com 4 months, 1 week ago.

  • Creator
    Topic
  • #14501
    Resolved
    baraanajjar@gmail.com
    Participant

    Hi support i have button group validation i have defined the following rule

    'section_select' => array(
                'required'  => true,
    
        ),
    
        // Rules for other fields
        ),
        /////////////////////////
        // Optional override of default error messages
    'messages' => array(
        'section_select' => array(
            'required'  => 'Section is required',
    
        ),

    and field as

    array(
                    'id' => 'section_select',
                    'name' => esc_html__( 'Section' ),
                    'type' => 'button_group',
                
                    'class' => 'col-md-8',
                    'placeholder' => esc_html__( 'Select Section' ),
                    'options' => array(
                        'Individual' => 'Individual',
                        'Companies' => 'Companies',
                        'Vip' => 'Vip',
                    ),
                    'inline' => 'true',
                    'multiple' => false,
                ),

    the form submit without validating this field
    please check

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.