J
Size: a a a
J
J
KD
PA
PA
J
J
ДИ
ДИ
ДИ
MK
J
J
M
MK
M
M
function cf7cv_custom_form_validation($result,$tag) {
$name = $tag['name'];
$form = WPCF7_Submission::get_instance();
$imgr_312 = $form->get_posted_data( 'radio-312' );
$imgr_34 = $form->get_posted_data( 'radio-up34' );
$imgr_sid = $form->get_posted_data( 'radio-side' );
if(empty( $imgr_312 ) && $name == 'radio-312'){
$result->invalidate( $name, "Выберите тип рамки" );
}
if(empty( $imgr_34 ) && $name == 'radio-up34'){
$result->invalidate( $name, "Выберите тип рамки" );
}
if(empty( $imgr_sid ) && $name == 'radio-side'){
$result->invalidate( $name, "Выберите тип рамки" );
}
return $result;
}
add_filter('wpcf7_validate_imageradio', 'cf7cv_custom_form_validation', 10, 2); // Req. text field
M