Form wizard thank you page

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
6/1/2012 10:37:32 AM
Gravatar
Total Posts 24

Form wizard thank you page

Hello to all. 

I was able to apply classes to form very easily, thank you for help and good coding, but I stuck a bit... could some one help me on that please.
When someone fills out a form...  next what they see is a thank you page and when it loads up it does not scrolls automatically to the very top of the page. It kind of stays on the same location where you were before you hit submit button. Is there a way to load "thank you page" at the top, as like any other pages loading when you go between them?

It seems like I experience this only in IE 8.

6/4/2012 9:48:01 AM
Gravatar
Total Posts 24

Re: Form wizard thank you page

Would some one be able to help me on this?

6/4/2012 9:55:46 AM
Gravatar
Total Posts 18439

Re: Form wizard thank you page

Hi,

Can you re-create the problem on our demo site so I can see it?

Thanks,

Joe

6/4/2012 2:15:00 PM
Gravatar
Total Posts 24

Re: Form wizard thank you page

Could you please give me your email, so I can send you the link?

6/4/2012 5:15:54 PM
Gravatar
Total Posts 18439

Re: Form wizard thank you page

joe dot audette at g mail dotcom

6/4/2012 5:22:11 PM
Gravatar
Total Posts 24

Re: Form wizard thank you page

Thank you, I just sent you message using a contact form at _www.joeaudette.com/contact.aspx.

I hope this will work :) Sorry for any inconvenience. 
 

6/5/2012 6:46:11 AM
Gravatar
Total Posts 18439

Re: Form wizard thank you page

Hi,

I looked at your site using IE 8 mode in IE 9 and I was able to replicate the problem on your site. However, I have no idea how to solve the problem. It looks to me like it has something to do with the javascript you are using to scroll the side content down the page. You have a lot of extra javascript on that page, fancybox, stickyfloat, movingboxes etc. Some of that may not even be used on this specific page. I guess you have that javasvcript in layout.master and some of it is not really used on every page. I would try copying your skin with a new name, assign the copy to that page so it is not using the same skin as the rest of the site (you can enable per page skins in site settings, then a skin dropdown will appear in page settings). Remove any javascript from that page that is not used. If the problem persists then try removing more javsascript until the problem goes away to identify for sure which javasdcript is causing it. My best guess is that it is caused by that stickyfloat.js or whatever script is doing the scrolling on the side content.

Wish I could be more helpful but that is all I have for you. The problem is not reproducible on the demo site or my local machine so it must be something with all that extra javascript you have.

Best,

Joe

6/5/2012 8:26:52 AM
Gravatar
Total Posts 24

Re: Form wizard thank you page

Thank you for your time,

I really appreciated it!

6/5/2012 3:18:59 PM
Gravatar
Total Posts 24

Re: Form wizard thank you page

Hi Joe,

Is there a way to have for the submit button to go to something like that: thanks.html#top? 

6/6/2012 6:48:37 AM
Gravatar
Total Posts 18439

Re: Form wizard thank you page

Hi,

No, there isn't, basically its an ajax postback inside an updatepanel, after completing the form we just hide the panel with the questions and show the panel with the thank you message, so the url remains the same.

For the next release of Form Wizard Pro I plan to add an option to allow redirecting to a custom page after completing the form as an alternative to the thank you message and that should help you. You will be able to make a CMS page (probably configured to not appear in the menu or site map) and then redirect to that page after form completion.

Hope that helps,

Joe

6/6/2012 11:45:03 AM
Gravatar
Total Posts 24

Re: Form wizard thank you page

Where can I find that function, which submit the form? 
I was thinking to add something like that in it: 

$(document).load(function() {
                $(".rightBlock").stop().animate({
                        marginTop: 0
                    });
});

 

PS. For some reasons, my /Admin/PageTree.aspx is blank! surprise No list of pages at all. 

And how do you apply a certain skin just to one page? I could not find that option in admin panel... sorry for being blind :) - I found that option.

6/25/2012 9:21:08 AM
Gravatar
Total Posts 18439

Re: Form wizard thank you page

Hi,

In follow up, another customer was able to provide an exported form definition that had a multi page form with the same scroll problem as you reported, and I was able to come up with a solution. There will be a setting in the next release of Form Wizard Pro to force scrolling the page back to the top on each submission.

You can also solve this today in your copy by editing the file /FormWizard/FormWizardModule.ascx with a text editor.

Put this just inside the <portal:InnerBodyPanel and just above the <asp:UpdatePanel

<script type="text/javascript">
    function formWizScrollTop() {
        window.document.body.scrollTop = 0;
        window.document.documentElement.scrollTop = 0;
    }
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    prm.add_endRequest(formWizScrollTop);
</script>

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.