<?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: Form Validation</title><link>https://www.infopathdev.com:443/forums/thread/52467.aspx</link><pubDate>Thu, 04 Mar 2010 16:28:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52467</guid><dc:creator>prostration</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52467.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52467</wfw:commentRss><description>&lt;p&gt;I got it working, I got the count of the errors in the form with this.Errors.Count. So I just have an if that checks if there are errors or not execute the rest of the code. For the rules im adding conditions to them or coding them instead of having them as button rules.&lt;/p&gt;</description></item><item><title>Form Validation</title><link>https://www.infopathdev.com:443/forums/thread/52456.aspx</link><pubDate>Thu, 04 Mar 2010 15:13:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52456</guid><dc:creator>prostration</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52456.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52456</wfw:commentRss><description>&lt;p&gt;I have a form with a button on it, the button has rules and custom code in it. I want to make it so that if there are any validation errors in the form the rules are not applied and the code is not executed. How can I do this?&lt;/p&gt;</description></item></channel></rss>