<?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>Getting FormErrorCollection after using DeleteAll</title><link>https://www.infopathdev.com:443/forums/thread/93595.aspx</link><pubDate>Thu, 10 Oct 2013 13:50:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93595</guid><dc:creator>Ian</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93595.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=93595</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I&amp;nbsp;have a save button that usese the deleteAll method of the FormErrorCollection that clears all errors in an Infopath form. This is to make madatory fields, none manadatoy&amp;nbsp;so users can save&amp;nbsp;a form at any point whilst editing.&amp;nbsp;Is there a way of getting the form errors again without closing and opening the form. The form is a web broswer form. Basically a user may save a form as they go along&amp;nbsp;and then use another button to sign off&amp;nbsp;it off. The sign off button should then pick up the form errors (Manadatory Fields). If the save button&amp;nbsp;has been already clicked the errors&amp;nbsp;can&amp;nbsp;not be captured which is my main problem. Im trying to avoid having to re-add the errors in code.&lt;/p&gt;&lt;p&gt;The form uses code behind&amp;nbsp;to do most of the validation on the field events etc.&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;Ian&lt;/p&gt;</description></item></channel></rss>