<?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: btnSubmit_Clicked with both Rules and Code Behind</title><link>https://www.infopathdev.com:443/forums/thread/79061.aspx</link><pubDate>Wed, 30 May 2012 19:02:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79061</guid><dc:creator>SeanPRyan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79061.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79061</wfw:commentRss><description>&lt;p&gt;I went through that page in detail earlier.&amp;nbsp; It was very close. But I did arrive at a solution finally.&amp;nbsp; Sometimes I over think it.&lt;/p&gt;&lt;p&gt;I created a new section in my Infopath Form and called it WholePage.&amp;nbsp; I then copied the entire form into this section. Then I created a new section and called it ThanksSection.&amp;nbsp; I entered some text saying thanks for filling out the form and placed a button with a rule to close the form. This section is not visible initially via Conditional Formatting.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The Whole section is then hidden when a user submits (again with Conditional Formatting) and the Thanks Section becomes visible.&amp;nbsp; All of my emails are fired off and the user can then click the button to close the form.&amp;nbsp; I guess the real key is to really examine your design before setting to task too quickly.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks so much for your help.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Sean&lt;/p&gt;</description></item><item><title>Re: btnSubmit_Clicked with both Rules and Code Behind</title><link>https://www.infopathdev.com:443/forums/thread/79054.aspx</link><pubDate>Wed, 30 May 2012 17:53:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79054</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79054.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79054</wfw:commentRss><description>&lt;p&gt;Try &lt;a href="http://www.bizsupportonline.net/blog/2009/01/how-to-programmatically-run-code-close-infopath-web-form/"&gt;this&lt;/a&gt; blog post? Although - it does sound as if the author is having a different experience than you are....&lt;/p&gt;</description></item><item><title>Re: btnSubmit_Clicked with both Rules and Code Behind</title><link>https://www.infopathdev.com:443/forums/thread/79053.aspx</link><pubDate>Wed, 30 May 2012 17:48:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79053</guid><dc:creator>SeanPRyan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79053.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79053</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I was unable to make this work in any way at all.&amp;nbsp; There must be a way to accomplish this.&amp;nbsp; I did set a value of a field and then in the rules, close form is not an option. It only appears as an option for buttons.&amp;nbsp; The Close this form after submit is not working either.&amp;nbsp; I have this form showing within XMLFormView so perhaps some JavaScript could work, but I&amp;#39;ve yet to make it work.&amp;nbsp; Any other clues for me?&amp;nbsp; Thanks.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: btnSubmit_Clicked with both Rules and Code Behind</title><link>https://www.infopathdev.com:443/forums/thread/79023.aspx</link><pubDate>Tue, 29 May 2012 20:01:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79023</guid><dc:creator>SeanPRyan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79023.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79023</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes, that does make sense.&amp;nbsp; I will respond back when I have things working.&amp;nbsp; Thanks again for taking the time :-)&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: btnSubmit_Clicked with both Rules and Code Behind</title><link>https://www.infopathdev.com:443/forums/thread/79022.aspx</link><pubDate>Tue, 29 May 2012 19:57:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79022</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79022.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79022</wfw:commentRss><description>&lt;p&gt;I didn&amp;#39;t realize it was a browser form - I see some asst&amp;#39;d posts and code snippets online for closing a browser based form - but it may be simpler to just have your code set a field that has the rule on it to close the form... Then, when the code is complete, it sets a field&amp;#39;s value, that field has the close rule - does that make sense?&lt;/p&gt;</description></item><item><title>Re: btnSubmit_Clicked with both Rules and Code Behind</title><link>https://www.infopathdev.com:443/forums/thread/79020.aspx</link><pubDate>Tue, 29 May 2012 19:23:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79020</guid><dc:creator>SeanPRyan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79020.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79020</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I couldn&amp;#39;t find a method to close the form.&amp;nbsp; This is a browser enabled form. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: btnSubmit_Clicked with both Rules and Code Behind</title><link>https://www.infopathdev.com:443/forums/thread/79018.aspx</link><pubDate>Tue, 29 May 2012 19:03:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79018</guid><dc:creator>SeanPRyan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79018.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79018</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for the response.&amp;nbsp; I will try that.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: btnSubmit_Clicked with both Rules and Code Behind</title><link>https://www.infopathdev.com:443/forums/thread/79012.aspx</link><pubDate>Tue, 29 May 2012 18:13:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79012</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79012.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79012</wfw:commentRss><description>&lt;p&gt;Rules run &lt;em&gt;before&lt;/em&gt; code - so your rule that closes the form will execute prior to the code running. You probably need to close your form in your code on the button instead.&lt;/p&gt;</description></item><item><title>btnSubmit_Clicked with both Rules and Code Behind</title><link>https://www.infopathdev.com:443/forums/thread/79011.aspx</link><pubDate>Tue, 29 May 2012 17:52:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79011</guid><dc:creator>SeanPRyan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79011</wfw:commentRss><description>&lt;p&gt;Can you fire off multiple rules and also put code into the code behind in VSTA? I have 3 rules associated with a given button as it relates to fields on my form. &amp;nbsp; &lt;/p&gt;&lt;p&gt;MakeTrue (sets a fields value), SubmitMe (Submit using Data Connection) and CloseOutForm (Close No Prompt).&amp;nbsp; CloseOutForm doesn&amp;#39;t Stop Processing Rules.&amp;nbsp; &lt;/p&gt;&lt;p&gt;I then have a breakpoint set on:&amp;nbsp; public void btnSubmit_Clicked(object sender, ClickedEventArgs e) in the C# code behind.&amp;nbsp; It never fires.&amp;nbsp; If I create a generic button, and associate the code with it and no rules, it works fine.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Any tips are most appreciated.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>