<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Code Before Rules?</title><link>https://www.infopathdev.com:443/forums/thread/53378.aspx</link><pubDate>Tue, 06 Apr 2010 16:47:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53378</guid><dc:creator>karteek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53378.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=53378</wfw:commentRss><description>Hey Dedek,

Thanks for your reply. The form works fine if I use the button click event but I cannot close the form from the button click events.</description></item><item><title>Re: Code Before Rules?</title><link>https://www.infopathdev.com:443/forums/thread/53367.aspx</link><pubDate>Tue, 06 Apr 2010 07:32:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53367</guid><dc:creator>Dedek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53367.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=53367</wfw:commentRss><description>&lt;p&gt;Don&amp;#39;t use submit event. Use on_clicked event instead. Now You can differenciate&amp;nbsp;multiple events &amp;amp; buttons. To submit form in on_clicked event just call &lt;em&gt;DataConnections[&amp;quot;yourSubmitDataSource&amp;quot;].Execute()&lt;/em&gt; method. &lt;/p&gt;</description></item><item><title>Re: Code Before Rules?</title><link>https://www.infopathdev.com:443/forums/thread/53309.aspx</link><pubDate>Thu, 01 Apr 2010 18:22:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53309</guid><dc:creator>karteek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53309.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=53309</wfw:commentRss><description>I tried to execute everything through code in FormEvents_Submit. It works fine if I have a single submit button. But how would i differenciate if there are multiple buttons like Approve, Reject etc.</description></item><item><title>Code Before Rules?</title><link>https://www.infopathdev.com:443/forums/thread/53285.aspx</link><pubDate>Wed, 31 Mar 2010 22:02:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53285</guid><dc:creator>karteek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53285.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=53285</wfw:commentRss><description>Hi,

I have a form with a couple of buttons. Clicking on any of the buttons first executes the RULES and then jumps to execute the code in the FormCode.cs file for the button click event. However, if I have &amp;quot;Close the Form&amp;quot; as one of the Rules for the button, the code does not execute. So, is there a way that I can close my Infopath fom after executing the code instead of closing from the RULES?

Also &amp;quot;The form has been closed&amp;quot; is the message which pops up after closing form through rules. Can we redirect to the form library instead of showing this message?

Thanks !</description></item></channel></rss>