Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #523637

    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

    #524348

    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

    #524371

    Hi.

    Thanks :-) But it doesn´t work :(

    • This reply was modified 8 years, 5 months ago by vollstark.
    #524877

    Hi!

    I´m Sorry. There was a wrong “first name” field in my form.

    Now it works very well!

    Thand you!!!! *thumbsup*

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Message from "Name"’ is closed to new replies.