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

    Hi,

    I didn’t found the final solution on this in forum:

    If somebody complete the contact form, we get all of the emails as the sender are “me” and not the user’s mail address.

    View post on imgur.com

    I found Yigit’s code in another thread. I think this is the key with a small modification:

    add_filter('avf_form_from', 'avf_form_from_mod', 10, 3);
    function avf_form_from_mod($from, $new_post, $form_params) {
        $from = " (Email address hidden if logged out) ";
        return $from;
    }

    The ” (Email address hidden if logged out) ” value can be the form’s email field value?

    Thanks,
    Csaba.

    • This topic was modified 5 years, 12 months ago by Nagytalp.
    #1036637

    Hey Nagytalp,

    Try checking out this thread: https://kriesi.at/support/topic/change-the-from-email-on-a-contact-form/#post-251496
    Hope this helps.

    Best regards,
    Nikko

    #1036822

    Hi Nikko,

    this code looks exactly what I’m looking for. BUT it doesn’t work in my case.
    I have no idea why?

    Best regards,
    Csaba

    #1037553

    Hi Csaba,

    I think I understand now what you’re trying to achieve.
    It’s possible however it’s not possible with hooks and core files needs to be tweaked and cannot be overriden in the child theme, so modification is done on the parent theme (Enfold), which also results for the tweaks being lost during each theme update.
    I think what you need is available using Contact Form 7 plugin, try using that plugin instead and we’ll help with the css so it can still looks similar as Enfold form fields.

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.