InfoPath Data Field Removes Zero

Scenario

Data Type for Field is Whole Number (integer)

Problem

Client enters number starting with zero. On moving to next field, zero is removed from the number!

clip_image002

clip_image004

Resolution

Open the text box properties in the design view of the form.

clip_image006

Select Format, next to the Data Type (which should be Whole Number (integer))

clip_image008

Change the Format from Number to None (display XML value)

clip_image010

Click OK

Click Apply

Click OK

Test

Now enter a number staring with Zero and you will notice that when moving to the next field, zero is not removed from the number.