Contact Form Thank You Page

resolved (3 posts) (3 voices)

  1. mktgdesign
    Member

    Using the shortcode contact form for several pages. Is there a way after successfully completing the form to send the user to an actual Thank You page instead of just giving them a thank you on the same page? Looking to implement this for goal tracking/completion and don;t see another way without having a separate thank you page.

    Posted 4 years ago #
  2. Elliott
    Support

    Hello mktgdesign,

    Open up /wp-content/themes/[your_theme]/lib/scripts/custom.js and on line 337 you should see this,

    if( data.mail_sent ) {

    The code beneath that line is what gets executed after the ajax is done so you could try adding a javascript redirect there.

    I think this javascript can be used to redirect somewhere,

    window.location = "http://www.google.com/";

    Posted 4 years ago #
  3. I'm looking to do the same thing and am just curious to hear if this worked?

    Posted 3 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme