• Resolved heqtor

    (@heqtor)


    https://stackoverflow.com/a/27299619/15005878 can somebody make this solution by dom ?

    example:

    on_sent_ok: "var Iso = $("select[name=your-selection-name]").val() ; 
    if(Iso == 'your-value-1' ){ 
       location = 'your-website1-url'; 
    } 
    if(Iso == 'your-value-2' ){ 
       location = 'your-website2-url'; 
    } 
    if(Iso == 'your-value-3' ){ 
       location = 'your-website3-url'; 
    }"

    just replace your-selection-name, your-values and your-websites

    • This topic was modified 3 years, 6 months ago by heqtor.
    • This topic was modified 3 years, 6 months ago by heqtor.
    • This topic was modified 3 years, 6 months ago by heqtor.
    • This topic was modified 3 years, 6 months ago by heqtor.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter heqtor

    (@heqtor)

    i Think i solved the problem here;

    document.addEventListener( 'wpcf7submit', function( event ) {
      var lpLocation =  document.getElementById("menu-831").value;
      if (lpLocation == "1900") {
        location = 'https://facebook.com/';
      } else if (lpLocation == "2000") {
        location = 'https://google.com/';
      }
    }, false )
    • This reply was modified 3 years, 6 months ago by heqtor.

    Dumb question, but where do you put this code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect page to specific URL based on drop-down selection’ is closed to new replies.