Forums

Contact Form 7
[resolved] When Press Submit - Redirect to Confirm Page? (7 posts)

  1. redwall
    Member
    Posted 7 months ago #

    Hi,

    I created an order form using this plugin. When the user presses submit I would like to take them to a page with some confirmation information rather than the small default popup which the user might get the feeling "Did that send, did that not"

    Is it possible to direct the user to a page after the form submission is successful?

    Cheers //Red

    http://wordpress.org/extend/plugins/contact-form-7/

  2. redwall
    Member
    Posted 7 months ago #

    Sorry I just seen this is covered in documentation. cheers!

    http://contactform7.com/blog/2010/03/27/redirecting-to-another-url-after-submissions/

  3. redwall
    Member
    Posted 7 months ago #

    Actually I am getting an error when I am implementing this now.

    I have it set up and it 'was' working momentarily but now it goes to some hashmark on the page.

    So when I press submit it goes to

    http://www.example-url.com/form/#wpcf7-f1894-p2036-o1

    This is my short code I am using for the form [contact-form-7 id="1894" title="Order_1"]. So I can see that it is pulling out the id into the # appended URL. Not sure what p2036 is?

    In additional settings on the form I used the following code

    on_sent_ok: "location = 'http://fikatown.com/success/';"

    Any help would be appreciated...

    Note: The actual form page is password protected, but I have tried removing this to test and it does not make a difference...

  4. redwall
    Member
    Posted 7 months ago #

    Update: SO when I even remove the additional setting for the page re-direct the same thing is still happening! Smae # tag put ont he end of the URL and the page jumps up....Bizarre...

  5. Takayuki Miyoshi
    Member
    Posted 7 months ago #

  6. redwall
    Member
    Posted 7 months ago #

    yep, I checked that link. It is strange as it "was" working and I did not install any new plugins but I did do this

    I toggled the permalinks from my custom structure of /%postname%/ to default and then back again. I was trying to fix something else unrelated to this form. I think that might be the moment it broke but can't be sure.

    I also see now on my site when I look at Firebug and console I get "Jquery is not defined"

    Any help?

  7. redwall
    Member
    Posted 7 months ago #

    OK, I resolved this...

    WP Minify does not play nice with Contact Form 7. Not sure exactly why, but I disabled the minify of JS and CSS and the # is now gone and I am back to my correct re-direct.

    @Takayuki Miyoshi - You may want to add specifically that plugin to your help link above....

Reply

You must log in to post.

About this Plugin

About this Topic