Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1332813

    Hi,
    Is it possible to have the Contact Form autoresponder send without including the form data the user has submitted?
    Thanks
    Steve

    #1332897

    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

    #1332906

    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)

    #1332968

    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

    #1332969

    Perfect.
    Thank you @Ismael

    #1333042

    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

    #1333083

    Thanks @Rikard

    Yes, please close the thread.

    #1333098

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Contact Form autorespond WITHOUT including form data?’ is closed to new replies.