Set the return page when InfoPath form is closed on the browser

In many secinarios i needed to set the page i want to open when the user closes the InfoPath form (browser enabled), after invistigating the browser enabled forms URL i found an intersting parameter, it is "Source".

the standard form url will be in the following form

http://londonmoss:36969/_layouts/FormServer.aspx?XsnLocation=http://londonmoss:36969/Forms/Forms/template.xsn&SaveLocation=http%3A%2F%2Flondonmoss%3A36969%2FForms&Source=http%3A%2F%2Flondonmoss%3A36969%2FReports%2FForms%2Fcurrent%2Easpx&DefaultItemOpen=1

you can just change the value for the "Source" paramter to whatever URL (must be in the same site collection) and in encoded format.

that's it Smile

any comments?


Posted on SharePoint Blogs Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

Read the complete post at http://www.sharepointblogs.com/marwantarek/archive/2007/11/19/set-the-return-page-when-infopath-form-is-closed-on-the-browser.aspx

Published Monday, November 19, 2007 7:20 AM by SharePoint Blogs
Filed under: ,