<?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: 1 Form 2 Submit Buttons 1 Recipient for each</title><link>https://www.infopathdev.com:443/forums/thread/41724.aspx</link><pubDate>Thu, 14 May 2009 18:22:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41724</guid><dc:creator>pervassive</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41724.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=41724</wfw:commentRss><description>&lt;p&gt;YEAH!&lt;/p&gt;
&lt;p&gt;Thanx Mel,&lt;/p&gt;
&lt;p&gt;That was perfect.&lt;/p&gt;</description></item><item><title>Re: 1 Form 2 Submit Buttons 1 Recipient for each</title><link>https://www.infopathdev.com:443/forums/thread/41669.aspx</link><pubDate>Wed, 13 May 2009 19:11:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41669</guid><dc:creator>Mel Clemente</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41669.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=41669</wfw:commentRss><description>&lt;p&gt;Hello and welcome to the forum!&lt;/p&gt;
&lt;p&gt;I believe you can achieve this without writing any code. You can instead use InfoPath&amp;#39;s built-in functionalities. Below are some&amp;nbsp;suggestions:&lt;/p&gt;
&lt;p&gt;1. Add Email Submit data connections in your form (Tools Menu&amp;nbsp;&amp;gt; Data Connections). You will have 2 different email submit connections, 1 for the first submit and 1 for the second (approve). In these, you will specify the recipient email address accordingly.&lt;/p&gt;
&lt;p&gt;2. Add a rule to your first Submit button that submits using the first email data connection.&lt;/p&gt;
&lt;p&gt;3. Do the same for your second Submit (Approve)&amp;nbsp;button &amp;gt; second email data connection.&lt;/p&gt;
&lt;p&gt;You can add conditional formatting to your buttons such that if the user (person filling out the form) is not the approver, then disable or hide&amp;nbsp;the Approve button, and vice-versa; OR, you can use just one button for both&amp;nbsp;submits, and configure your rules with conditional formatting.&lt;/p&gt;
&lt;p&gt;i.e.&lt;/p&gt;
&lt;p&gt;First Rule: If &amp;quot;User&amp;quot; is not equal to &amp;quot;Approver&amp;quot;, then submit using the first email data connection.&lt;/p&gt;
&lt;p&gt;Second Rule: If &amp;quot;User is equal to &amp;quot;Approver&amp;quot;, then submit using the second email data connection.&lt;/p&gt;
&lt;p&gt;I hope that makes sense. Otherwise, please let me know and I&amp;#39;d be glad to assist you further.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;</description></item><item><title>1 Form 2 Submit Buttons 1 Recipient for each</title><link>https://www.infopathdev.com:443/forums/thread/41664.aspx</link><pubDate>Wed, 13 May 2009 16:10:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41664</guid><dc:creator>pervassive</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41664.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=41664</wfw:commentRss><description>&lt;p&gt;Hallo, &lt;/p&gt;
&lt;p&gt;I am no programmer so please excuse the ignorance. &lt;/p&gt;
&lt;p&gt;I have 1 Form with 2 submit buttons. 1 &amp;quot;Submit&amp;quot; which sends the form to first receipient who needs to approve the request. Button 2 &amp;quot;Approve&amp;quot; then sends it to another recipient.&lt;/p&gt;
&lt;p&gt;I saw a post with similar question but no example code. Can anyone give me an example, I&amp;#39;ve tried several and get error in this line and that line...grrr ; )&lt;/p&gt;</description></item></channel></rss>