Button Group Validation not working

Support General Button Group Validation not workingResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14501
    baraanajjar@gmail.com[email protected]
    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

    #14507
    baraanajjar@gmail.com[email protected]
    Participant

    this it is solved

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.