I have a CustNo field that is numeric and I need to do an input validation on it to ensure that it is 10 digits. I am having a problem with the field dropping the zero’s. i.e, let’s say the CustNo is 0000001211 and I run the input validation with the following formula:
@If(@Length(@Text(CustNo))!= 10;@Failure(“Customer Number must be ten digits”); @Success)
It will give me the error that the CustNo is not 10 digits. When the document get’s saving it reads 1211.
Does anyone have any suggestion on how to keep the Zeros and still be able to conduct the validation on the number field?
… and if you are using this as a key field you should carefully review your design to make sure it is working properly as a text field vs a numeric field.
The change could trigger failures in sorts and other formulas where it is referenced.