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

convert text to all caps

BHale
Registered: Mar 4 2009
Posts: 7

Hoping to find a way to convert entered text to all CAPS when a user leaves the input field. For instance, if a user types 'abcd', I need to display 'ABCD'.

Any thoughts?

My Product Information:
Acrobat Pro 9.1
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You can use JavaScirpt's 'toUpperCase()' method.

From the Adobe Acrobat JS API Reference:

Quote:
Example
Change all keystrokes to upper case.

// Custom Keystroke for text field
event.change = event.change.toUpperCase();
[url=http://www.adobe.com/devnet/acrobat/javascript.php]JavaScript for Acrobat[/url]
[url=http://www.adobe.com/devnet/acrobat/]Acrobat 9 SDK[/url]

George Kaiser