Infopath browser Form does not close but redirects when opened from a webpart after submit - InfoPath Dev Sign in | Join | Help in Browser Forms InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Browser Forms » Infopath browser Form does not close but redirects when opened from a webpart after submit Infopath browser Form does not close but redirects when opened from a webpart after submit Last post 09-21-2010 01:18 PM by Bobby.Clemens. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 09-20-2010 07:44 AM RSharepoint Joined on 06-28-2010 Posts 23 Infopath browser Form does not close but redirects when opened from a webpart after submit Reply Contact Hi , I am trying to close the browser enabled infopath form that is opened from a content editor webpart using javascript after submit.I have also included a rule to close the form after submit but instead of closing it redirects to the same form. When I open the same form from the form library it works fine..and it closes the form after submit.But when I open from webpart it does not seem to work. Can anybody please help. this is the url that i use in webpart to open the browser form onclick='BLOCKED SCRIPTwindow.open("http://xfhssp01/English/quality/APQP/IssueManagement/_layouts/FormServer.aspx?XsnLocation=http://xfhssp01/FormServerTemplates/NewCAFormFinal.xsn&SaveLocation=http%3A%2F%2Fxfhssp01%2FEnglish%2Fquality%2FAPQP%2FIssueManagement%2FAll%20Issues&DefaultItemOpen=1")' Any Help would be appreciated!! Thanks in advance Regards 09-21-2010 07:02 AM In reply to Bobby.Clemens Joined on 09-20-2010 Tampa, FL Posts 2 Re: Infopath browser Form does not close but redirects when opened from a webpart after submit Mark as Not AnswerMark as Answer... Reply Contact In your URL, include a SOURCE parameter. When the form closes, FormServer.aspx will redirect to this SOURCE. Example: onclick='BLOCKED SCRIPTwindow.open("http://xfhssp01/English/quality/APQP/IssueManagement/_layouts/FormServer.aspx?XsnLocation=http://xfhssp01/FormServerTemplates/NewCAFormFinal.xsn&SaveLocation=http%3A%2F%2Fxfhssp01%2FEnglish%2Fquality%2FAPQP%2FIssueManagement%2FAll%20Issues&DefaultItemOpen=1&Source=http://www.cnn.com/")' 09-21-2010 11:48 AM In reply to RSharepoint Joined on 06-28-2010 Posts 23 Re: Infopath browser Form does not close but redirects when opened from a webpart after submit Mark as Not AnswerMark as Answer... Reply Contact Hi Bobby, Thanks for the reply , I tried your solution , however I do not want the form to redirect to any source .As I open the form in a new window, I just want that window to close after submit. Please help! Thanks 09-21-2010 01:18 PM In reply to Bobby.Clemens Joined on 09-20-2010 Tampa, FL Posts 2 Re: Infopath browser Form does not close but redirects when opened from a webpart after submit Mark as Not AnswerMark as Answer... Reply Contact Not sure if this will work or not as I am not in front of my work pc.... But try setting the source to Java Script:window.close() as opposed to an http address. Remove the space between Java and Script prior to placing it in the URL. Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Hi ,
I am trying to close the browser enabled infopath form that is opened from a content editor webpart using javascript after submit.I have also included a rule to close the form after submit but instead of closing it redirects to the same form. When I open the same form from the form library it works fine..and it closes the form after submit.But when I open from webpart it does not seem to work. Can anybody please help.
this is the url that i use in webpart to open the browser form
onclick='BLOCKED SCRIPTwindow.open("http://xfhssp01/English/quality/APQP/IssueManagement/_layouts/FormServer.aspx?XsnLocation=http://xfhssp01/FormServerTemplates/NewCAFormFinal.xsn&SaveLocation=http%3A%2F%2Fxfhssp01%2FEnglish%2Fquality%2FAPQP%2FIssueManagement%2FAll%20Issues&DefaultItemOpen=1")'
Any Help would be appreciated!!
Thanks in advance
Regards
In your URL, include a SOURCE parameter. When the form closes, FormServer.aspx will redirect to this SOURCE.
Example: onclick='BLOCKED SCRIPTwindow.open("http://xfhssp01/English/quality/APQP/IssueManagement/_layouts/FormServer.aspx?XsnLocation=http://xfhssp01/FormServerTemplates/NewCAFormFinal.xsn&SaveLocation=http%3A%2F%2Fxfhssp01%2FEnglish%2Fquality%2FAPQP%2FIssueManagement%2FAll%20Issues&DefaultItemOpen=1&Source=http://www.cnn.com/")'
Hi Bobby,
Thanks for the reply , I tried your solution , however I do not want the form to redirect to any source .As I open the form in a new window, I just want that window to close after submit.
Please help!
Thanks