Hi!
It´s me again ;-)
If I get an E-Mail via my contact form I would like to see the Name from the sender in the subject line of the E-Mail I get.
Is it possible to write a variable (or similar) for the input of an textfield to the field of the E-Mail subject?
Sorry for my english. I hope you understand ;-))
All the best,
Kai
Hey vollstark!
Thank for you using Enfold.
We need to see the actual contact form. Please post the url here. Did you separate the first and the last name? Try this in the functions.php file:
add_filter( 'avia_contact_form_args', 'avia_contact_form_args_mod', 10, 1);
function avia_contact_form_args_mod( $form_args ) {
$form_args['subject'] = $form_args['subject'] . ' ' . $_POST['avia_first_name_1'] . ' ' . $_POST['avia_last_name_1'];
return $form_args;
}
Cheers!
Ismael
Hi!
I´m Sorry. There was a wrong “first name” field in my form.
Now it works very well!
Thand you!!!! *thumbsup*