Validate field in groups not working
-
Hello @all,
if a field is outside of a group, the field validation works fine:
https://cl.ly/5c8007f323c9function validate_form($form, $args) { $binding_reservation = af_get_field( 'binding_reservation' ); if ( empty($binding_reservation) ) { af_add_error( 'binding_reservation', 'Please accept' ); } } add_action( 'af/form/validate/key=form_5cc7111a61557', 'validate_form', 10, 3 );
But if the field is in a group, nothing happens?
https://cl.ly/94a8019bdf6fIs there a sub-field function or anything else?
Like this => af_get_sub_field( ” );BR, Patrick
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Validate field in groups not working’ is closed to new replies.