get radio button value javascript
document.querySelector('input[name="rate"]:checked').value;
get radio button value javascript
document.querySelector('input[name="rate"]:checked').value;
get posted data from radio button cf7
function wpcf7_cstm_function($contact_form) {
$title = $contact_form->title;
$submission = WPCF7_Submission::get_instance();
if ($submission) {
$posted_data = $submission->get_posted_data();
$txt = isset($posted_data['txt'])?$posted_data['txt']:'';
$text2 = isset($posted_data['txt2'])?$posted_data['txt2']:'';
$radio = isset($posted_data['radio'][0])?$posted_data['radio'][0]:'';
// do something with your data
}
}
add_action("wpcf7_before_send_mail", "wpcf7_cstm_function");
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us