Hi guys,
Is it possible to send a copy of a completed contact form to the person who filled it out? (So as well as the website owner receiving the enquiry, the person who filled out the form gets a copy of the information they have filled out.)
I know some contact forms do this but was really hoping it could be done with the form on Enfold.
Best, David.
Hey David!
Try adding this at the very end of your theme / child theme functions.php file:
function copy_to_sender($to, $new_post, $foo) {
$to[] = $new_post['e-mail_1'];
return $to;
}
add_filter('avf_form_copy', 'copy_to_sender', 10, 3);
Cheers!
Josue
Hi Josue,
I tried adding the code to the end of the functions.php file and the whole site stopped working. Am I missing something?
Best, David.
Hi David,
Can you please create me an administrator account? post it here as a private reply.
Regards,
Josue
Hey!
I am having a look for you right now.
Regards,
Arvish
Hi David,
Having had a look, the customization will unfortunately take some time to do.
I’d recommend using a plugin like CF7 which allows you to easily set the sender email and also modify the mail that is sent.
Regards,
Arvish