<?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: Validation</title><link>https://www.infopathdev.com:443/forums/thread/31220.aspx</link><pubDate>Wed, 06 Aug 2008 10:17:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31220</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31220.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=31220</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Here is the two ways:&lt;/p&gt;
&lt;p&gt;1. You can restrict to enter the data in Second control If user doesn&amp;#39;t not have data in first control.&lt;/p&gt;
&lt;p&gt;2. If user entered in second control first and after that user enters the data in first control then we can enable the validation using code. In first control on after change event we can get the second control data and set the data to same field then validation error event will fire again.&lt;/p&gt;</description></item><item><title>Validation</title><link>https://www.infopathdev.com:443/forums/thread/31196.aspx</link><pubDate>Tue, 05 Aug 2008 13:00:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31196</guid><dc:creator>ranierbonnici</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31196.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=31196</wfw:commentRss><description>&lt;p&gt;Suppose I have two controls in my form.&amp;nbsp; Validation of control 2 depends on the value of control 1.&lt;/p&gt;
&lt;p&gt;My&amp;nbsp;problem is that if the user fills in control 2 prior to control 1, I cannot validate control 2 using the validating event, and hence, the ReportError() method is not available anymore.&lt;/p&gt;
&lt;p&gt;Is there a way how I can &lt;em&gt;force&lt;/em&gt; the validating event to execute at a later stage (e.g. on submit) or report the error in some other way?&lt;/p&gt;</description></item></channel></rss>