<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: coding forming to close infopath on submit</title><link>https://www.infopathdev.com:443/forums/thread/63656.aspx</link><pubDate>Thu, 27 Jan 2011 20:15:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63656</guid><dc:creator>HamishAhern</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63656.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=63656</wfw:commentRss><description>&lt;p&gt;did anybody find a solution to his yet?&amp;nbsp;&amp;nbsp; I made a solution:&lt;/p&gt;1) Use windows API to disable the form close button...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="http://social.msdn.microsoft.com/Forums/en/sharepointinfopath/thread/257f186f-3ab3-4ac4-9553-f71d100ad297"&gt;http://social.msdn.microsoft.com/Forums/en/sharepointinfopath/thread/257f186f-3ab3-4ac4-9553-f71d100ad297&lt;/a&gt;&lt;br /&gt;2) Disable the toolbars using code from google..&lt;br /&gt;3) put a button on the form for the user to close the app&lt;br /&gt;4)&amp;nbsp; use Application.Exit() to quit InfoPath.&lt;br /&gt;&lt;br /&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; btnExit_Clicked(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ClickedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;font size="2"&gt;{&lt;br /&gt;// your save code here.&lt;br /&gt;&lt;br /&gt;//re-enable toolbars before you exit&lt;br /&gt;HideAllToolbars(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;br /&gt;//Exit App&lt;br /&gt;Application.Quit();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; HideAllToolbars(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;bool&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; flag)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;&lt;/p&gt;CommandBars&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myCommandBars = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Application.ActiveWindow.CommandBars &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;as&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;CommandBars&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;CommandBar&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myCommandBar = (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Application.ActiveWindow.CommandBars &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;as&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;CommandBars&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).ActiveMenuBar;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;CommandBar&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; item &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myCommandBars)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//MessageBox.Show(item.Name.ToString() + &amp;quot; &amp;quot; + item.Type.ToString() + &amp;quot; &amp;quot; + item.Index.ToString());&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (flag == &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp;&amp;amp; (item.Type == &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;MsoBarType&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.msoBarTypeMenuBar || item.Type == &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;MsoBarType&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.msoBarTypeNormal))&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;item.Enabled = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: coding forming to close infopath on submit</title><link>https://www.infopathdev.com:443/forums/thread/46165.aspx</link><pubDate>Mon, 24 Aug 2009 11:03:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46165</guid><dc:creator>Razor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46165.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46165</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m having the same problem but I.m using Infopath 2007 with the 2007 object model and managed C# code. Could someone enlighten me on how I should code to close both the form and Infopath? &lt;/p&gt;
&lt;p&gt;Regards Razor&lt;/p&gt;</description></item><item><title>Re: coding forming to close infopath on submit</title><link>https://www.infopathdev.com:443/forums/thread/38220.aspx</link><pubDate>Mon, 09 Feb 2009 10:23:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38220</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38220.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=38220</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font size="3"&gt;Hi,&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font size="3"&gt;You can use below steps to close the form instead of using Code.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpFirst" style="MARGIN:0in 0in 0pt 0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;"&gt;&lt;span style="mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;1.&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Open button Properties.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="MARGIN:0in 0in 0pt 0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;"&gt;&lt;span style="mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;2.&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Select “rules and Custom Code” option in the Action dropdown.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="MARGIN:0in 0in 0pt 0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;"&gt;&lt;span style="mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;3.&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Click on Rules button and click on Add button.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="MARGIN:0in 0in 0pt 0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;"&gt;&lt;span style="mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;4.&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Click on Add Action button.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="MARGIN:0in 0in 0pt 0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;"&gt;&lt;span style="mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;5.&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Add first Rule to submit the form.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpLast" style="MARGIN:0in 0in 10pt 0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;"&gt;&lt;span style="mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;6.&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Add second rule to close the form. &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;(Click on Add Action and select “Close the form” from Action dropdown.)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: coding forming to close infopath on submit</title><link>https://www.infopathdev.com:443/forums/thread/38219.aspx</link><pubDate>Mon, 09 Feb 2009 09:36:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38219</guid><dc:creator>Rajitha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38219.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=38219</wfw:commentRss><description>&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Hi,&lt;/span&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Save the attachment and open it in design mode. Then click on Preview. Then it will work.&lt;/span&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: coding forming to close infopath on submit</title><link>https://www.infopathdev.com:443/forums/thread/38216.aspx</link><pubDate>Mon, 09 Feb 2009 08:52:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38216</guid><dc:creator>aredubbya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38216.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=38216</wfw:commentRss><description>&lt;p&gt;Hi Raijtha, &lt;/p&gt;
&lt;p&gt;Thanks for the reply, unfortuately your test.xsn form wouldn&amp;#39;t open. The error said &lt;/p&gt;
&lt;p&gt;&amp;quot;This form cannot be opened becasue it requires domain level permissions and it currently has restricted permission.To fix this problem, open the form from the location it was published to.&lt;/p&gt;
&lt;p&gt;Published location:file ///C:\Documents and Settings\rajithas.GGK\Desktop\Test.xsn&amp;quot;&lt;/p&gt;
&lt;p&gt;Cuold you try again or outline how set up an&amp;nbsp;onclick event for after submission here? I appreciate your help. Thanks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: coding forming to close infopath on submit</title><link>https://www.infopathdev.com:443/forums/thread/38154.aspx</link><pubDate>Fri, 06 Feb 2009 11:57:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38154</guid><dc:creator>Rajitha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38154.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=38154</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You have to use below code in submit button OnClick event after submitting form.&lt;/p&gt;
&lt;p&gt;thisXDocument.View.Window.Close(true);&lt;/p&gt;
&lt;p&gt;Here is the sample attachment xsn.&lt;/p&gt;</description></item><item><title>Re: coding forming to close infopath on submit</title><link>https://www.infopathdev.com:443/forums/thread/38146.aspx</link><pubDate>Fri, 06 Feb 2009 09:22:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38146</guid><dc:creator>aredubbya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38146.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=38146</wfw:commentRss><description>&lt;p&gt;Hi Patrick, &lt;/p&gt;
&lt;p&gt;Thanks for a prompt reply.&amp;nbsp; I already has this enabled and this does work ONLY in regards to closing the form, it does not however close InfoPath the application. What you get is&amp;nbsp;the&amp;nbsp;image below.&lt;img title="InfoPath after submit form by email" style="WIDTH:429px;HEIGHT:352px;" alt="InfoPath after submit form by email" src="http://www.kist.ed.jp/images/InfoPath.bmp" align="left" /&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want the InfoPath form to close the InfoPath application&amp;nbsp;too (like you would normally by clicking on the &amp;quot;X&amp;quot; in the top right hand coner or pressing &amp;quot;ALT F4&amp;quot;) after the form has been submitted by email. There has to be a way to do this. &lt;/p&gt;
&lt;p&gt;How do you do this?&lt;/p&gt;</description></item><item><title>Re: coding forming to close infopath on submit</title><link>https://www.infopathdev.com:443/forums/thread/38139.aspx</link><pubDate>Fri, 06 Feb 2009 05:25:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38139</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38139.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=38139</wfw:commentRss><description>&lt;p&gt;Hi Aredubbya and welcome!&lt;/p&gt;
&lt;p&gt;Go to Tools-&amp;gt;Submit Options and choose Advanced. Thre is a &amp;quot;After submit...&amp;quot; dropdown. Choose &amp;quot;Close the form&amp;quot;. No coding required for IP2007.&lt;/p&gt;</description></item><item><title>coding forming to close infopath on submit</title><link>https://www.infopathdev.com:443/forums/thread/38138.aspx</link><pubDate>Fri, 06 Feb 2009 05:01:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38138</guid><dc:creator>aredubbya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38138.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=38138</wfw:commentRss><description>&lt;p&gt;In InfoPath 2007, I have a form that has a submit button and I want to close the instance of infopath after it has been submitted. I have read the following two forums but they are not very clear on how to exactly make this happen,&amp;nbsp;just detailing the code and not all the steps re where to put the code exactly. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/918/3387.aspx#3387"&gt;http://www.infopathdev.com/forums/p/918/3387.aspx#3387&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/2262/9360.aspx#9360"&gt;http://www.infopathdev.com/forums/p/2262/9360.aspx#9360&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I want the instance of Infopath to be closed after the form has been submitted (via email, this part is working fine). &lt;/p&gt;
&lt;p&gt;I have inserted the button control and right clicked for button properties, now here button properties dialog window, I can select the action submit(the only other option is rules and custom code)&amp;nbsp;and then I can choose below that submit options. From there I select to allow users to submit by email, follow the GUI all they way through and it works fine. &lt;/p&gt;
&lt;p&gt;How do add rules/code from this point on to close the infopath instance? A detailed reply or a form with a working sample would be much appreciated, thankyou.&lt;/p&gt;</description></item></channel></rss>