<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Zero first in a text box.</title><link>https://www.infopathdev.com:443/forums/thread/70557.aspx</link><pubDate>Fri, 23 Sep 2011 03:13:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70557</guid><dc:creator>devkiat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70557</wfw:commentRss><description>another way is to make your datatype to string then add this in the formula
substring-after(concat(&amp;quot;x&amp;quot;, 100000 + 123), &amp;quot;x1&amp;quot;)

this results to:
100000+123 = 100123
x100123
00123

i use &amp;#39;x&amp;#39; only as a marker

happy programming :)</description></item><item><title>Re: Zero first in a text box.</title><link>https://www.infopathdev.com:443/forums/thread/33244.aspx</link><pubDate>Sun, 19 Oct 2008 14:37:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33244</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33244.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33244</wfw:commentRss><description>&lt;p&gt;You are correct that the format button is disabled for string data types, but in my test, the leading zero remained for a browser form.&lt;/p&gt;
&lt;p&gt;I created a simple browser form with a text field. I published the form. When I opened it and filled it out, the leading zero remained in my text box:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/blogs/hilary/BrowserFormLeadingZero.png"&gt;&lt;img src="http://www.infopathdev.com/blogs/hilary/BrowserFormLeadingZero.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Perhaps you should try re-adding your field?&lt;/p&gt;</description></item><item><title>Re: Zero first in a text box.</title><link>https://www.infopathdev.com:443/forums/thread/33243.aspx</link><pubDate>Sun, 19 Oct 2008 08:31:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33243</guid><dc:creator>dipesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33243.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33243</wfw:commentRss><description>&lt;p&gt;even it data type of field is string. it wil remove the leading zeros on browser.&lt;/p&gt;
&lt;p&gt;note: format button is disable by default for string datatype in infopath.&lt;/p&gt;</description></item><item><title>Re: Zero first in a text box.</title><link>https://www.infopathdev.com:443/forums/thread/6616.aspx</link><pubDate>Mon, 04 Apr 2005 19:43:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6616</guid><dc:creator>BrownR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6616.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6616</wfw:commentRss><description>Ok Greg,&lt;br /&gt;        The only way i could solve it was to replace the text feild with a new field. Same settings as the deleted one but now it works. Thanks for the reply. I love this site. What happened a couple weeks ago, i couldnt get on.</description></item><item><title>Re: Zero first in a text box.</title><link>https://www.infopathdev.com:443/forums/thread/6615.aspx</link><pubDate>Tue, 29 Mar 2005 23:00:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6615</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6615.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6615</wfw:commentRss><description>If the field is formatted as a number, the leading zero gets dropped. If it has formatted turned off (None), the leading zeros will remain.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Zero first in a text box.</title><link>https://www.infopathdev.com:443/forums/thread/4600.aspx</link><pubDate>Tue, 29 Mar 2005 15:47:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4600</guid><dc:creator>BrownR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4600.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4600</wfw:commentRss><description>I have an arrey of text boxs that hold numbers. In some of the boxs a number maybe inputed starting with a zero. Right now some of the boxs drop the zero and other dont. Ive made sure the data types are varchars in SQL 2000 but they still drop the zero, but other boxs dont drop it. What do i need to look for to see why they are differant.</description></item></channel></rss>