<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Submit a form to both a database and e-mail</title><link>https://www.infopathdev.com:443/forums/thread/40303.aspx</link><pubDate>Fri, 03 Apr 2009 20:06:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40303</guid><dc:creator>kminor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40303.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40303</wfw:commentRss><description>&lt;p&gt;Pretty sure I have the code to do this now.&amp;nbsp; I&amp;#39;ll post it for reference after I&amp;#39;m certain it works.&lt;/p&gt;</description></item><item><title>Re: Submit a form to both a database and e-mail</title><link>https://www.infopathdev.com:443/forums/thread/40292.aspx</link><pubDate>Fri, 03 Apr 2009 14:06:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40292</guid><dc:creator>kminor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40292.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40292</wfw:commentRss><description>&lt;p&gt;Hi, Madhuri.&amp;nbsp; Thanks for your response!&amp;nbsp; I don&amp;#39;t think I can perform all of my validation in the onChange events.&amp;nbsp; Most of my validation involves examining the values of several different fields together -- for example, if the user doesn&amp;#39;t provide a customer number, then the customer name, city, and state must be provided.&amp;nbsp; I couldn&amp;#39;t figure out how to put that in the onChange events without making the user enter stuff in a specified order.&amp;nbsp; And I didn&amp;#39;t want to do that.&amp;nbsp; The code works great if I just run it before the e-mail code (the current version of the form works this way).&lt;/p&gt;
&lt;p&gt;I couldn&amp;#39;t figure out how to create an onClick event for the button.&amp;nbsp; Since it&amp;#39;s set to be a submit button, it doesn&amp;#39;t show the name of the control anywhere.&amp;nbsp; Is there a way to find that out?&lt;/p&gt;</description></item><item><title>Re: Submit a form to both a database and e-mail</title><link>https://www.infopathdev.com:443/forums/thread/40275.aspx</link><pubDate>Fri, 03 Apr 2009 06:10:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40275</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40275.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40275</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Try validating&amp;nbsp;the fields in OnAfterChange event and the email code on OnClick event of Submit button.&lt;/p&gt;</description></item><item><title>Submit a form to both a database and e-mail</title><link>https://www.infopathdev.com:443/forums/thread/40268.aspx</link><pubDate>Thu, 02 Apr 2009 20:49:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40268</guid><dc:creator>kminor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40268.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40268</wfw:commentRss><description>&lt;p&gt;Hello, I&amp;#39;m having trouble figuring out how to do this, and I didn&amp;#39;t find an answer when I searched the forum.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got a form that&amp;#39;s connected to a database.&amp;nbsp; I can submit to it fine.&amp;nbsp; I&amp;#39;ve got another form&amp;nbsp;that contains&amp;nbsp;code to submit via e-mail.&amp;nbsp; I put this code in a button&amp;#39;s onClick event.&lt;/p&gt;
&lt;p&gt;What I can&amp;#39;t figure out is where to put that e-mail code in my database-connected form.&amp;nbsp; The button is an actual submit button.&amp;nbsp; It doesn&amp;#39;t use rules/codes or anything.&amp;nbsp; I want the e-mail code to execute BEFORE the database submit because it contains validation scripts for the input data.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks in advance for any help!&lt;/p&gt;</description></item></channel></rss>