<?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: data validation on form load</title><link>https://www.infopathdev.com:443/forums/thread/61631.aspx</link><pubDate>Tue, 23 Nov 2010 19:13:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61631</guid><dc:creator>khurram</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61631.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61631</wfw:commentRss><description>I agree with you Hilary, for asterisk showing up its ok, but if you have radio button group in your form, without any default selection, and they cannot be blank, there is red boxes that appear around them which is very annoying indeed and make forms look very weired. I have never seen online forms displayed like this. I do not understand why the infopath form validation doesn&amp;#39;t work like asp.net validation controls and why we do not have control over it. I am using brower-enabled forms.</description></item><item><title>Re: data validation on form load</title><link>https://www.infopathdev.com:443/forums/thread/60338.aspx</link><pubDate>Thu, 14 Oct 2010 18:12:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60338</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60338</wfw:commentRss><description>&lt;p&gt;You&amp;#39;ll need to do some custom validation, then, based on whether the field is blank and another field with some value that you can use to try to determine user intent (i.e. -- user clicked submit button when the field was blank) instead of using the built in &amp;quot;can&amp;#39;t be blank&amp;quot; option on fields.&lt;/p&gt;&lt;p&gt;I&amp;#39;m going to have to say, though that while&amp;nbsp;I understand where you are coming from, this isn&amp;#39;t an approach I agree with. At one point, I also didn&amp;#39;t like marking fields as invalid if the user hasn&amp;#39;t had a chance to fill them out. In the end, though, I&amp;#39;ve decided that having a red asterisk display on the &amp;quot;can&amp;#39;t be blank&amp;quot; fields is what people are used to -- lots of online forms are that way, and it is actually easier to fill them out, because I&amp;#39;m not left guessing what is required.&lt;/p&gt;</description></item><item><title>Re: data validation on form load</title><link>https://www.infopathdev.com:443/forums/thread/60333.aspx</link><pubDate>Thu, 14 Oct 2010 14:41:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60333</guid><dc:creator>khurram</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60333.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60333</wfw:commentRss><description>i do not want to submit a form if its not valid, but i also do not want controls to show up red and with validation messages as soon as the form is loaded. what i want is that validation only happens once the user starts filling in the controls. Like if i have a required field validation on a textbox it should only show red if a user tabs through it without filling it in. An empty form should not show up all red and with validation messages on load.</description></item><item><title>Re: data validation on form load</title><link>https://www.infopathdev.com:443/forums/thread/60317.aspx</link><pubDate>Wed, 13 Oct 2010 22:37:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60317</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60317.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60317</wfw:commentRss><description>Generally, you want to make sure your form is valid &lt;strong&gt;prior&lt;/strong&gt; to submitting. Why would you want to submit XML if a required field is still blank? If your validation needs to be more complex, you could have a field in your form that maintains the form state -- when the user clicks the submit button, for example, you could set that field to &amp;quot;Submitted&amp;quot;. Then your data validation could also take that field into account -- if fieldA is blank and formState is &amp;quot;Submitted&amp;quot;....</description></item><item><title>data validation on form load</title><link>https://www.infopathdev.com:443/forums/thread/60314.aspx</link><pubDate>Wed, 13 Oct 2010 20:33:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60314</guid><dc:creator>khurram</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60314.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60314</wfw:commentRss><description>Hi,
I am trying to validate a form using rules in infopath 2010. For example if I have a required field I add a rule &amp;quot;Is blank&amp;quot; and then change formatting to bad. It works fine except the validation is performed as soon as  the form is loaded, even before the user has submitted the form by clicking on a button.
Am I missing something? Is there a way to trigger validation only once the user clicks on the submit button? 
thanks,
Khurram</description></item></channel></rss>