<?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: Space in the entry field.</title><link>https://www.infopathdev.com:443/forums/thread/41319.aspx</link><pubDate>Wed, 06 May 2009 00:10:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41319</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41319.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41319</wfw:commentRss><description>&lt;p&gt;You can add data validation that verifies whether the entry begins with a space. See screenshot.&lt;/p&gt;&lt;p&gt;A bit tedious if you have a lot of fields, but easier than writing code. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Space in the entry field.</title><link>https://www.infopathdev.com:443/forums/thread/40586.aspx</link><pubDate>Tue, 14 Apr 2009 13:13:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40586</guid><dc:creator>Bhavesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40586.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40586</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I am working on a web based Infopath form. My form has multiple view for data entry. Every view has several entry fields and each field has its own business logic. I am making some of the fields as REQUIRED based on entry in some other control. i had written C# code behind for this and used out of box rules and validations.&lt;/p&gt;
&lt;p&gt;My problem is that when the form control is set as REQUIRED and use enter spaces in this control, how to prevent user from entering blank spaces in the text control and force to enter some data.&lt;/p&gt;
&lt;p&gt;I can check user entry on changes event by writing the code but for every control i can not write code as there will be a performance issue as well as there are large number of controls.&lt;/p&gt;
&lt;p&gt;I observed that when there is some code written on the changed event of a control and i tab out from that control on my page, i can see busy process with message &amp;quot;sending data to server&amp;#39;. This is not acceptable from management point of view.&lt;/p&gt;
&lt;p&gt;Can any body suggest a way to prevent user from entering white space in a control?&lt;/p&gt;
&lt;p&gt;thanks a lot in advance. &lt;/p&gt;
&lt;p&gt;Bhavesh&lt;/p&gt;</description></item></channel></rss>