<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Summary of Validation Errors</title><link>https://www.infopathdev.com:443/forums/thread/33431.aspx</link><pubDate>Thu, 23 Oct 2008 17:37:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33431</guid><dc:creator>Bhavesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33431.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=33431</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For checking the InfoPath form&amp;#39;s error collection getting populated with validation errors you need to write some VSTA code and then you can check the error collection for getting the details of all the errors. Without writing a code i do not think we have any way to check the error collection.&lt;/p&gt;
&lt;p&gt;you can try the following code&lt;/p&gt;&lt;font color="#0000ff"&gt;
&lt;p&gt;int&lt;/font&gt; FormErrcount = 0;&lt;/p&gt;
&lt;p&gt;FormErrcount = Errors.Count;&lt;/p&gt;&lt;font color="#0000ff"&gt;
&lt;p&gt;if&lt;/font&gt; (FormErrcount &amp;gt; 0)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;foreach&lt;/font&gt; (&lt;font color="#2b91af"&gt;FormError&lt;/font&gt; err &lt;font color="#0000ff"&gt;in&lt;/font&gt; Errors)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;ErrorDesc += &lt;font color="#a31515"&gt;&amp;quot;(&amp;quot;&lt;/font&gt; + err.FormErrorType + &lt;font color="#a31515"&gt;&amp;quot;, &amp;quot;&lt;/font&gt; + err.Site.Name + &lt;font color="#a31515"&gt;&amp;quot;) &amp;quot;&lt;/font&gt; + err.Message + System.&lt;font color="#2b91af"&gt;Environment&lt;/font&gt;.NewLine;&lt;/p&gt;&lt;font color="#0000ff"&gt;
&lt;p&gt;if&lt;/font&gt; (err.Site.Name == &lt;font color="#a31515"&gt;&amp;quot;my:field1&amp;quot;&lt;/font&gt;)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;(...do some operation)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;return&lt;/font&gt; &lt;font color="#0000ff"&gt;false&lt;/font&gt;;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bhavesh&lt;/p&gt;</description></item><item><title>Summary of Validation Errors</title><link>https://www.infopathdev.com:443/forums/thread/31628.aspx</link><pubDate>Thu, 21 Aug 2008 16:22:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31628</guid><dc:creator>AlexSt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31628.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=31628</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am trying to get a complete List of all validation Errors in a browser enabled form. In my environment, the XmlFormView is embedded into an aspx page and&amp;nbsp; would like to get the errors after calling XmlForm.Submit(). I looked into the XmlForm.Errors but it seems that this Property is not accessible within browser enabled forms. If I catch the exception that is thrown by XmlForm.Submit() when there are validation errors on the page, I am only able to get the first error that occured during validation.&lt;/p&gt;&lt;p&gt;Searching the internet I found some hints, that it might be possible to access all validation errors using code within the InfoPath forms. Since this requires the forms to be approved by an administrator I am looking for a solution that avoids integrated code.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Does anyone have any ideas how to achieve this, or am I completely on the wrong track?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Alex&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>