Checkbox values are ‘true’ or ‘false’ in the autoresponder message from the contact form.
This is not very helpfull to the user.
This works in the notification email, and change the reply to ‘yes’ or ‘no’.
But this does not change the values in the autoresponder email to the user.
https://kriesi.at/support/topic/checkbox-and-radiobutton-values/
add_filter('avf_form_message', 'avf_form_message_mod_checkbox', 10, 3);
function avf_form_message_mod_checkbox($message, $new_post, $form_params) {
$message = str_replace('true', 'Yes', $message);
$message = str_replace('false', 'No', $message);
return $message;
}
I would like to get this to work in the autoresponder email too.
Would you provide the code to do that?
PS – best thing would be to make it translatable, like many other strings in the form…..
Hey Ok,
Thank you for the inquiry.
You can also use the avf_form_autorespondermessage filter to adjust the autoresponder message same as you would with the form message. Or if you want to create a custom responder message, use the avf_form_custom_autoresponder filter.
Best regards,
Ismael