<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/22730.aspx</link><pubDate>Wed, 29 Aug 2007 15:04:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22730</guid><dc:creator>BAHMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22730.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=22730</wfw:commentRss><description>&lt;p&gt;I tried all that before.&amp;nbsp; I was just wondering if I could be blocked from running the code?&amp;nbsp; Or if the submit button actions trumped the code.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/22723.aspx</link><pubDate>Wed, 29 Aug 2007 13:27:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22723</guid><dc:creator>B.Shiva Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22723.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=22723</wfw:commentRss><description>&lt;p&gt;Hi BAHMan,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;InfoPath site converted the &amp;quot;J Script&amp;quot; and &amp;quot;VB Script&amp;quot;&amp;nbsp;with no space in to BLOCKED SCRIPT. &lt;/p&gt;
&lt;p&gt;In Java Sript&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Application.ActiveWindow.Close(true)&lt;/p&gt;
&lt;p&gt;and in VB Script&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.ActiveWindow.Close(True) or Application.ActiveWindow.Close(true)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this will help you..&lt;/p&gt;</description></item><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/22722.aspx</link><pubDate>Wed, 29 Aug 2007 13:22:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22722</guid><dc:creator>B.Shiva Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22722.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=22722</wfw:commentRss><description>&lt;p&gt;Hi BAHMan,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I tried in both VB.Script and Java Script.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;In Java Script &amp;quot;true&amp;quot; is case sensitive where as in VB.Script it is not.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Try these&lt;/p&gt;
&lt;p&gt;BLOCKED SCRIPT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.ActiveWindow.Close(true)&lt;/p&gt;
&lt;p&gt;BLOCKED SCRIPT&amp;nbsp;&amp;nbsp;&amp;nbsp;Application.ActiveWindow.Close(True) or Application.ActiveWindow.Close(true)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this will help you.&lt;/p&gt;</description></item><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/22708.aspx</link><pubDate>Tue, 28 Aug 2007 21:11:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22708</guid><dc:creator>BAHMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22708.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=22708</wfw:commentRss><description>&lt;p&gt;I am having the same problem.&amp;nbsp; I am not sure what is the issue.&amp;nbsp; I am using VBScript as my language.&amp;nbsp; I have a submit button that saves the info and closes the form.&amp;nbsp; The code below is all I have for the OnSaveRequest.&amp;nbsp; I am new to InfoPath and this site.&lt;/p&gt;
&lt;p&gt;Sub XDocument_OnSaveRequest(eventObj) &lt;/p&gt;
&lt;p&gt;&amp;#39; Write the code to be run before saving here. &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;eventObj.IsCancelled = eventObj.PerformSaveOperation &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;#39; Write the code to be run after saving here. &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Application.ActiveWindow.Close True &lt;/p&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;eventObj.ReturnStatus = True &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;End Sub&lt;/p&gt;</description></item><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/9361.aspx</link><pubDate>Mon, 20 Mar 2006 19:49:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9361</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9361.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9361</wfw:commentRss><description>thisApplication.ActiveWindow.Close(true) is for c#.  The problem you had was due to the casing issue (and it's my fault, I had typo in my suggestion).  &lt;br /&gt;&lt;br /&gt;The MSDN library is a good place to start:&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_2003_ta/html/odc_ancInfo.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_2003_ta/html/odc_ancInfo.asp&lt;/a&gt;</description></item><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/9360.aspx</link><pubDate>Mon, 20 Mar 2006 19:35:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9360</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9360.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9360</wfw:commentRss><description>Trying all options presented ... this one worked:&lt;br /&gt;&lt;br /&gt;Application.ActiveWindow.Close(true);&lt;br /&gt;&lt;br /&gt;Where can I find help on the object model and these types of commands?  I have a subscription to safari.informit.com, and am reading Patrick Halstead's Developing Solutions with Microsoft InfoPath.  Are there any other great resources I should know about other than this site?&lt;br /&gt;&lt;br /&gt;Thank you, everyone!  I'm so excited.</description></item><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/9359.aspx</link><pubDate>Mon, 20 Mar 2006 19:32:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9359</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9359.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9359</wfw:commentRss><description>Well, take that back.  My version didn't work.  Neither did this:&lt;br /&gt;&lt;br /&gt;thisApplication.ActiveWindow.Close(true);&lt;br /&gt;&lt;br /&gt;Any other thoughts why mine wouldn't be working? &lt;br /&gt;&lt;br /&gt;Thanks!</description></item><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/9358.aspx</link><pubDate>Mon, 20 Mar 2006 17:12:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9358</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9358.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9358</wfw:commentRss><description>Hi CycleFitness,&lt;br /&gt;&lt;br /&gt;Try this one&lt;br /&gt;thisApplication.ActiveWindow.Close(true);&lt;br /&gt;&lt;br /&gt;Hope this helps you.</description></item><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/9357.aspx</link><pubDate>Mon, 20 Mar 2006 17:09:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9357</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9357.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9357</wfw:commentRss><description>I am sorry, it should be a lower case "true".</description></item><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/9356.aspx</link><pubDate>Mon, 20 Mar 2006 13:50:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9356</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9356.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9356</wfw:commentRss><description>Thanks, Stephanie.  I tried this JS: &lt;br /&gt;Application.ActiveWindow.Close(True); &lt;br /&gt;&lt;br /&gt;but get this error:&lt;br /&gt;&lt;br /&gt;A run-time error has occurred . . .&lt;br /&gt;"True" is undefined</description></item><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/9355.aspx</link><pubDate>Sun, 19 Mar 2006 00:19:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9355</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9355.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9355</wfw:commentRss><description>Try this in vb.net: &lt;br /&gt;thisXDocument.Submit() &lt;br /&gt;thisXDocument.View.Window.Close(True) &lt;br /&gt;&lt;br /&gt;or for JScript:&lt;br /&gt;Application.ActiveWindow.Close(True); &lt;br /&gt;&lt;br /&gt;or VB Script&lt;br /&gt;Application.ActiveWindow.Close True&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Good luck!&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/9354.aspx</link><pubDate>Sat, 18 Mar 2006 23:53:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9354</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9354.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9354</wfw:commentRss><description>Thanks, Stephanie.  Mine doesn't behave like that.  If the user clicks "Fill Out This Form" from the forms library, they click Submit and the form is submitted and closed, but InfoPath is left open.&lt;br /&gt;&lt;br /&gt;Also, is there a way to code it so it would automatically close even if launched from within an email?&lt;br /&gt;&lt;br /&gt;Deb</description></item><item><title>Re: Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/9353.aspx</link><pubDate>Fri, 17 Mar 2006 21:05:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9353</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9353.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9353</wfw:commentRss><description>When you select the Submitting Forms under Tools, click Enable Submit commands and buttons.  Click Submit options, then select Close the form.  When the form is published to the SharePoint library and your user uses "Fill Out This Form", after they click Submit, the form and application should close.</description></item><item><title>Can Submit Close InfoPath?</title><link>https://www.infopathdev.com:443/forums/thread/5456.aspx</link><pubDate>Fri, 17 Mar 2006 20:47:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5456</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5456.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5456</wfw:commentRss><description>I would like Submit to not only close the form, but close InfoPath.  This application seems to scare the bejesus out of people and I'd like them to not be left in the middle of it once they've filled out a form.&lt;br /&gt;&lt;br /&gt;Thanks!</description></item></channel></rss>