How do you stop Text fields from auto formatting numbers?

S

Steve

Hi,

How can I stop a text field from automatically formatting user data? For
instance, my main data source has a text field called product number. The
form has a text box with the data type set to "Text (string)".

If a user enters A025600 as the product number everything is fine. However,
if the user enters 025600 it automatically gets converted to 25,600 - which
is not good.

How can I stop InfoPath from automatically formatting the user data?
 
A

Aruna

Hi Steve,

If you set the data type of text field to “Text (string)†then it will not
truncate the number.
I have a question for you. Are you converting this text field into integer
in code?
I tried your scenario, it is working correctly for me.
 
S

Steve

Thanks Aruna,

Not sure what was happening or if there could have been a cached form
template or something, but you're right, it's not truncating the number
(string) anymore.

To answer your question, no I'm not coverting it in code.
 

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