<?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: How do you pad a value in a text box</title><link>https://www.infopathdev.com:443/forums/thread/24575.aspx</link><pubDate>Tue, 20 Nov 2007 17:48:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24575</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24575.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=24575</wfw:commentRss><description>&lt;p&gt;That makes it more challenging. Who came up with the account number specification?&lt;/p&gt;
&lt;p&gt;You could setup for each scenario and validate against characters rather than digits so you would have 4 rules. You can do the custom pattern with just characters (.)&lt;/p&gt;
&lt;p&gt;1 character add 4 spaces&lt;/p&gt;
&lt;p&gt;2 characters add 3 spaces&lt;/p&gt;
&lt;p&gt;3 characters add 2 spaces&lt;/p&gt;
&lt;p&gt;4 characters add&amp;nbsp;1 space&lt;/p&gt;
&lt;p&gt;Else no padding&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Have you tried in your filter Account_NumfromUserEntry = normalize-space(Accountnumfromlist)&lt;/p&gt;
&lt;p&gt;That should be the proper approach. That way it compares what was entered with the list value without the space. &lt;/p&gt;</description></item><item><title>Re: How do you pad a value in a text box</title><link>https://www.infopathdev.com:443/forums/thread/24574.aspx</link><pubDate>Tue, 20 Nov 2007 17:24:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24574</guid><dc:creator>Ed Rodman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24574.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=24574</wfw:commentRss><description>&lt;p&gt;The value can be 5 character alpha, 4 character alpha, 2 alpha 1 numeric, 1 numeric+4 alpha, 3 numeric+2 alpha, 3 numeric....basically any possibility up to 5 characters. Will this work. I am having trouble getting the rule to work.&lt;/p&gt;</description></item><item><title>Re: How do you pad a value in a text box</title><link>https://www.infopathdev.com:443/forums/thread/24571.aspx</link><pubDate>Tue, 20 Nov 2007 15:42:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24571</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24571.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=24571</wfw:commentRss><description>&lt;p&gt;Hey Ed.&lt;/p&gt;
&lt;p&gt;Here is a way to do it.&lt;/p&gt;
&lt;p&gt;I think you said before it is either a 5 digit numeric or it is 4 text so I would add a condition&amp;nbsp;to a new rule that says if dropdown field for account number does not equal pattern and then use zipcode, which is 5 numeric digits.&amp;nbsp; This should catch your everything that is not 5 digits.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Then for your rule set field and then&amp;nbsp;use concat(dropdown_account_num, &amp;quot; &amp;quot;) = accountnuminlist for your filter on account name.&lt;/p&gt;
&lt;p&gt;Hope that helps.&amp;nbsp; - I still think you need to get this into SQL for production.&lt;/p&gt;</description></item><item><title>How do you pad a value in a text box</title><link>https://www.infopathdev.com:443/forums/thread/24569.aspx</link><pubDate>Tue, 20 Nov 2007 13:55:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24569</guid><dc:creator>Ed Rodman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24569.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=24569</wfw:commentRss><description>&lt;p&gt;I think I messed up trying to explain an issue. I have a field in an ACCESS database table that is 5 characters. Not all records contain 5 characters, some contain 4.&amp;nbsp; When someone enters an AccountID containing 4 characters, it does not work, they have to enter a space at the end, So, I don&amp;#39;t think the normalize-space function is what I need, I need to pad a space onto the value in the text box.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>