I'm trying to allow leading zeros in a credit card field.
I have 4 fields, one for each set of numbers.
I'm currently using number format for each field.
When the user types a leading zero in their credit card number, acrobat gets all excited and assumes that the leading zero(s) should not be there, then removes it / them.
Is there any way I can allow leading zeros?
Change the format to None.
You can create your own validation script to make sure then user is entering
You can use the 'util.printf' method to force the display of leading zeros.
Thank You! I ended up following your instructions and using this:
var fmt = /^\d\d\d\d$/;
if(event.value != "")
app.alert("Incorrect format, must be four numbers");
event.rc = false;