<?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: Problem: Validation with Rules</title><link>https://www.infopathdev.com:443/forums/thread/84701.aspx</link><pubDate>Sat, 24 Nov 2012 19:06:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84701</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84701.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=84701</wfw:commentRss><description>&lt;p&gt;Hi A.Goodwin and thanks for posting,&lt;/p&gt;&lt;p&gt;You&amp;#39;re right that the InfoPath eventing model requires that focus move out of the control before validation takes place.&lt;/p&gt;&lt;p&gt;InfoPath has an option in the text box properties to automatically move to the next field when a certain number of characters are type in. This can be used to provide validation for UPC scanners etc. Probably won&amp;#39;t work for you though since you have variable length text. &lt;/p&gt;&lt;p&gt;I recommend just using an optional&amp;nbsp;section in your form with static red text saying that the text box needs to be filled in. You can put this under the button. You can have two buttons for Button 1. First button is &amp;quot;Confirm&amp;quot; and that has the effect of validating the field since when they click it the focus is changed and then the optional guidance text section will disappear and I would hide the Confirm button based on the same condition and then display a Submit button. Which will now succeed since the text field is now valid.&lt;/p&gt;&lt;p&gt;Just some random ideas to help you workaround the limits ...&lt;/p&gt;</description></item><item><title>Problem: Validation with Rules</title><link>https://www.infopathdev.com:443/forums/thread/84578.aspx</link><pubDate>Tue, 20 Nov 2012 16:17:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84578</guid><dc:creator>a.goodwin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84578.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=84578</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;&lt;u&gt;Scenario&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Browser based form in MOSS2007. &lt;/p&gt;&lt;p&gt;View 1&lt;br /&gt;Two buttons&lt;br /&gt;- Button 1 - Submit form and go to View 2&lt;br /&gt;- Button 2 - Submit form and go to View 3&lt;/p&gt;&lt;p&gt;One text&amp;nbsp;field&lt;br /&gt;- The text&amp;nbsp;field is associated with Button 1&lt;br /&gt;-&amp;nbsp;The text field must contain content to be able to use Button 1&lt;br /&gt;- There is no requirement for text to be entered to use Button 2&lt;br /&gt;&lt;br /&gt;-&amp;nbsp;A formatting rule is used for&amp;nbsp;Button&amp;nbsp;1 (Condition: text field is blank, Formatting: Disable this control).&lt;br /&gt;- Because&amp;nbsp;two submit buttons exist and only one requires content the standard &amp;quot;Cannot be blank&amp;quot;&amp;nbsp;property on the text box is not usable.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Problem&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;It appears the standard behaviour of InfoPath in this scenario is that InfoPath requires that the user must &lt;u&gt;click outside&lt;/u&gt; of the text box &lt;u&gt;after&lt;/u&gt; entering text for the rule validation to take place and the button to be made available. This is contrary to percieved &amp;quot;normal&amp;quot; behaviour of non-InfoPath web fields requiring text where as soon as text is entered the button is available.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;u&gt;Desired Behaviour&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;As soon as the user adds content to the text box the button becomes avialable.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Q: How can we achieve the desired behaviour??&lt;/p&gt;</description></item></channel></rss>