Copy link to clipboard
Copied
Hi,
I was wondering if there is a way to do a custom number format for an entry form in Acrobat Pro DC.
The number format I'm looking for is
##-######
Example: 22-123456
The format category doesn't list any options that fit this formatting, and I didn't see any under the special options tab so I'm assuming I will have to do a custom script. I have no experience with writing a Javascript. Anyone able to offer advice?
You can easily do this the Special arbitraty mask buitl-in feature and if necessary limitting the number of characters.
You may also employ a custom format script.
In both mehtods you should specify an arbitray mask with the following expression:
99-999999
However, I've read before in these forums that 9 is a reserved character to specify digits only, and I am not sure if it could trigger errors.
In which case, the way to go is with a script using the util.prinx() method.
In any case
...Copy link to clipboard
Copied
You can easily do this the Special arbitraty mask buitl-in feature and if necessary limitting the number of characters.
You may also employ a custom format script.
In both mehtods you should specify an arbitray mask with the following expression:
99-999999
However, I've read before in these forums that 9 is a reserved character to specify digits only, and I am not sure if it could trigger errors.
In which case, the way to go is with a script using the util.prinx() method.
In any case, give it a try and see if works.
Copy link to clipboard
Copied
Thank you so much! That worked
Copy link to clipboard
Copied
You're welcome.