redirect user’s browser after submit  
Author Message
Ward Noppe





PostPosted: SharePoint - InfoPath Forms Services, redirect user’s browser after submit Top

Hi, I have created an InfoPath form on SharePoint form services. After the user has submitted the page I want the user’s browser to redirect to a custom webpage. Is this possible



SharePoint Products and Technologies2  
 
 
andrewvr





PostPosted: SharePoint - InfoPath Forms Services, redirect user’s browser after submit Top

It is - just add the Source= parameter to the end of the URL, and that will be the page that will be opened when the form is closed.

Like this: http://vm-devmoss01:99/finance/Invoices/986.xml &Source=http://vm-devmoss01:99/finance/Pages/approvals.aspx&OpenIn=Browser

Documentation here: How to: Use Query Parameters to Invoke Browser-Enabled InfoPath Forms


 
 
Ward Noppe





PostPosted: SharePoint - InfoPath Forms Services, redirect user’s browser after submit Top

Thanks, It works fine when I enter the url in the navigation bar of the browser. But I have my form running in an Iframe. When I set the same url in the Iframe I get a JavaScript error ‘access denied’. I don’t know if matters but I use anonymous access. Is Javascript restricted in an Iframe


 
 
andrewvr





PostPosted: SharePoint - InfoPath Forms Services, redirect user’s browser after submit Top

It is more likely to be due to the security restrictions in pace for the zone you are in. Try adding both sites to the 'Local Intranet Zone' (which by default allows cross-domain and zone hopping stuff to happen) and see if you get the same problem.

Assuming that you own both sites and trust the content therein!

Also, have you tried taking the string defined on Source parameter and typing it into the browser address bar, just to make sure it does work as you expect.


 
 
Snowboarderx





PostPosted: SharePoint - InfoPath Forms Services, redirect user’s browser after submit Top

Is it possible to redirect the users browser to a custom web page on another server