• Hi guys,

    I’m trying to work out how to forward a contact form depending on the visitors selection from a drop down.

    Here’s the code I have in the Additional Settings :

    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    if {

    var lpLocation = document.getElementById(“lpLocation”).value;

    if (lpLocation == “Facebook”) { location = ‘https://facebook.com/’; }
    else if (lpLocation == “Google”) { location = ‘https://google.com/’; }

    }
    }, false )

    And here’s what I have on my form

    [select* location id:lpLocation “Facebook” “Google”]

    The form sends the email but it’s not forwarding and I can’t quite figure out why it’s not working.

    Can you help?

    thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional forwarding based on drop-down’ is closed to new replies.