Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ralph van Vugt 57 posts 101 karma points
    Dec 20, 2010 @ 23:10
    Ralph van Vugt
    0

    Redirect to thankyou page on redirect

    Hi,

    Is it possible to redirect to a thankyou-page on submit? Would be nice for SEO.

    Thanks!
    Ralph

  • Jon Cuthbert 84 posts 173 karma points
    Dec 21, 2010 @ 16:00
    Jon Cuthbert
    0

    Hi Ralph,

    For now, I am just going to leave this for you guys to add on if you want. All you would need to do is change the "success" function of the ajax call.

    success: function(result, textStatus) {
            $loader.hide();
            if(result.d.Result == '3') {
              //alert(result.d.Msg);
              jQuery('#PliableForm_error').show().append('<p class="pErrorMessage">'+result.d.Msg+'</p>');
            }
            else {
              jQuery('#PliableForm_success').show();
            }
          }

    Change the "jQuery('#PliableForm_success').show();" line (line 59 as of version .9.6) to something like window.location = "/thankyou.aspx".


    If you have multiple form and want to make this dynamic, add a textstring or content picker to your form document type. Add the "NiceUrl" to a hidden input field and pull that through the javascript

    window.location = document.getElementById('thankYouPage').value;
  • Ralph van Vugt 57 posts 101 karma points
    Dec 22, 2010 @ 09:13
    Ralph van Vugt
    0

    Hi Jon,

    Thanks for the reply. Works great!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies