infopath strips leading zeros from input

W

Will

I have a text box bound to a string. When I input numbers with leading
zeros into the box, infopath strips away the zeros. Is there a way to
stop this from happening so that I can store strings like "01" and
"001"?

Thanks
 
G

Greg Collins [InfoPath MVP]

You likely have your field datatype as a whole number. If you set the datatype to text, then it will store the zeros.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


I have a text box bound to a string. When I input numbers with leading
zeros into the box, infopath strips away the zeros. Is there a way to
stop this from happening so that I can store strings like "01" and
"001"?

Thanks
 
W

Will

Thanks for the response Greg.

My form is actually based on an external schema. The test box was
originally bound to a number, but I changed it to a string in the
schema. After converting the data source, it seems some of the
number-related formatting was still left in the infopath xsl. I
deleted the text box and created a new one which fixed the problem.

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top