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

input text word (A to Z) only

andrewchow11
Registered: Mar 28 2011
Posts: 20

Hi all,
 
In the textbox, how can input text word (A to Z) only and UpperCase, not number and symbol??

My Product Information:
Acrobat 9.0, Windows
try67
Online
Expert
Registered: Oct 30 2008
Posts: 2398
You can use this code as your custom validation code:

event.rc = event.value=="" || event.value.match(/^[A-Z]+$/);

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

andrewchow11
Registered: Mar 28 2011
Posts: 20
hi try67, i testing this code, but why can input number?

try67 wrote:
You can use this code as your custom validation code:event.rc = event.value=="" || event.value.match(/^[A-Z]+$/);
try67
Online
Expert
Registered: Oct 30 2008
Posts: 2398
Using this code it's not possible to enter numbers to the box.

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