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