<?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: throw validation errors on click of submit button</title><link>https://www.infopathdev.com:443/forums/thread/67499.aspx</link><pubDate>Sat, 18 Jun 2011 20:45:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67499</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67499.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=67499</wfw:commentRss><description>&lt;p&gt;Hi Mahender,&lt;/p&gt;
&lt;p&gt;Dialog box popups arent supported in MOSS 2007 (nor 2010, I believe) so that won&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;You can use the error board though, so the code you are writing should add the error to the error board for your form and then you can use the default InfoPath validation errors (hover over, etc.) to show the user the issue but a dialog box won&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;May I suggest that you just use another section in your form that conditionally hides or shows based on whether there is an error. This can take the place of a dialog box - you just need to set the context to it, or do a switch view to show it and have a button to go back if your main view is long. Otherwise, just add the errors section to your main view close to the repeating table and then people will see it and fix the issue.&lt;/p&gt;
&lt;p&gt;Best of luck!&lt;/p&gt;</description></item><item><title>throw validation errors on click of submit button</title><link>https://www.infopathdev.com:443/forums/thread/67492.aspx</link><pubDate>Sat, 18 Jun 2011 19:44:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67492</guid><dc:creator>Mahender</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67492.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=67492</wfw:commentRss><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can any1 please provide me any solution, how to show validation on click of submit button, I have infopath form, where user can add row to repeatable table, I have to do some validation programatically&amp;nbsp;&amp;nbsp;&amp;nbsp;on click&amp;nbsp;of button &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, I did validation and adding validation errors to error collection.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&amp;nbsp;&amp;quot; &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Errors.Add(root, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Validation Error&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Cannnot Submit form due to abscence of role with name &amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + ownerList[i]); &amp;quot;&amp;nbsp; &lt;/font&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;font size="2"&gt;&amp;nbsp;It works fine, but it works only on client enabled infopath . But it does not work in browser enabled form. Can anyone tell me how to how show this validation error in browser based form.&lt;/font&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Some one has mention XDocument.ui.alert(), but i dont see any XDocument in Infopath form 2007 code behind. Im using C# has programmic logic. Please let me know solution ASAP&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;-Mahender&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;</description></item></channel></rss>