Link to home
Create AccountLog in
Avatar of Wragge
Wragge

asked on

SharePoint 2010 Infopath Form Webpart redirect on submit

I have an infopath form webpart on a page - I want to redirect to the home page of the site when the user clicks submit - anyone know how to do this?

I can't use the source= parameter in the url as its a webpart.

Can't use submit to rule to show another view as want to return to the homepage not a new infopath view.

Any help would be appreciated.
Avatar of Arnold Layne
Arnold Layne
Flag of United States of America image

Seems like you are looking for this.

http://mysharepointexp.blogspot.com/2011/12/redirecting-infopath-form-after-submit.html

Let me know if this doesn't help. Cheers.
Avatar of Wragge
Wragge

ASKER

Thanks but that is only for the form not for Infopath Form Webpart.  Tried putting source in the URL but because it's a webpart on the page it doesn't work.
ASKER CERTIFIED SOLUTION
Avatar of Arnold Layne
Arnold Layne
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Wragge

ASKER

Thanks for this - I had actually looked at this but just copied and pasted the script into the content editor webpart and wondered why it didn't work.  When I looked again following your link I realised that the < > were missing on the all the script references - put them in and it works.

Brilliant.

Thank you very much.
Yes I noticed that as well and maybe I should have mentioned that, but anybody who can write javascript will pick that up as you did. Glad it worked. Cheers.