Tagged: autorespond, CONTACT FORM
Hi,
Is it possible to have the Contact Form autoresponder send without including the form data the user has submitted?
Thanks
Steve
Hey Steve,
Thank you for the inquiry.
Did you manually input the Autorespond Text and Autorespond Subject? These fields are located in the contact form element’s Backend panel.
Best regards,
Ismael
Hi @Ismael,
I have manually entered the subject and autorespond text.
I want to remove the entered form fields from the autorespond email.
Currently it shows my autorespond text but also shows what the user entered into the form – I don’t want to include what the user submitted:
Your Message:
Name: XXXXX XXXXXX
E-Mail: (Email address hidden if logged out)
Hi,
Thank you for the clarification.
Try to use this filter in the functions.php file to exclude the contact form message or form fields’ value from the autorespond message.
// directly return the autoresponder text
add_filter("avf_form_custom_autoresponder", function($auto, $message, $cp, $post) {
return $cp->form_params['autoresponder'];
}, 10, 4);
Best regards,
Ismael
Perfect.
Thank you @Ismael
Hi,
Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
Thanks @Rikard
Yes, please close the thread.
Hi,
Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard