<?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: Save Event - Determine If Validation Errors Exist</title><link>https://www.infopathdev.com:443/forums/thread/84540.aspx</link><pubDate>Mon, 19 Nov 2012 18:01:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84540</guid><dc:creator>kcorbet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84540.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=84540</wfw:commentRss><description>&lt;p&gt;Hi Anson,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&amp;nbsp; The submit button does what I want, prevent submit from occuring if there are validation errors in the form.&lt;/p&gt;
&lt;p&gt;The Save or Save As buttons are the issue.&amp;nbsp; This is&amp;nbsp;because it will prompt the user if there are errors, but the prompt allows the user to continue with the save.&amp;nbsp; I want to disable saving if there are validation errors.&lt;/p&gt;
&lt;p&gt;I am currently utilizing custom code in the save event handler that checks a couple fields to see if they contain a prohibited value, if so exit sub (prevent saving).&amp;nbsp; I could continue with this approach using custom code for all the fields that have validation, but this would be exhaustive and require heavy ongoing maintenance.&lt;/p&gt;
&lt;p&gt;It seemed to me that there may be some VB code that could count or true/false if there are validation errors in the form.&lt;/p&gt;</description></item><item><title>Re: Save Event - Determine If Validation Errors Exist</title><link>https://www.infopathdev.com:443/forums/thread/84538.aspx</link><pubDate>Mon, 19 Nov 2012 17:45:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84538</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84538.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=84538</wfw:commentRss><description>Is there some sort of submit functionality that commits the form at the end?&amp;nbsp; If so, then it should be okay to save the form with validation errors as long as they are cleared before submit occurs.&amp;nbsp; Otherwise, you&amp;#39;re looking at custom code for sure and unfortunately not sure off the top of my head if its even possible to block save.</description></item><item><title>Save Event - Determine If Validation Errors Exist</title><link>https://www.infopathdev.com:443/forums/thread/84491.aspx</link><pubDate>Fri, 16 Nov 2012 15:49:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84491</guid><dc:creator>kcorbet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84491.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=84491</wfw:commentRss><description>&lt;p&gt;Hi InfoPathers,&lt;/p&gt;
&lt;p&gt;I am attempting to prevent users from saving a form&amp;nbsp;if there are validation errors.&amp;nbsp; Note: I cannot eliminate the ability to save, as I offer the ability to save forms locally for offline use.&lt;/p&gt;
&lt;p&gt;Users are abusing the save functionality to override field validation.&amp;nbsp; Is there a way in the form save event (&amp;#39;07 Form Filler Template)&amp;nbsp;I can determine if validation errors are present so I can exit sub if True (existing code written in VB)?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</description></item></channel></rss>