These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Help with Arbitrary Mask or Custom Format Script

Spawn
Registered: Dec 14 2011
Posts: 1

Hi guys,
 
I'm having a little trouble, I've searched for a solution in other posts but find nothing. Hope this is not a repeated one :)
 
I need a field to be formated like this E0******, wich * are only numbers (0-9).
 
The user can only insert an E or e at the beggining and the follow are numbers.
 
Anyone can help me, please :)
  
Thanks in advance.

André Carona

My Product Information:
Acrobat Pro 10.1, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You can use this as the custom validation script:
if (event.value!="") event.rc = /^E0\d{6}$/i.test(event.value);

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com