Skip to main content
dawnh65269867
Participant
Feb 2, 2016 5:00 AM UTC
Answered

Force Upper or Lower case in Acrobat DC Pro?

Hi!

Is it possible to run a script that will force all letters in specific fields to appear as upper or lower case as soon as one hits tab or clicks the mouse on another field?  This field would also need to remain capitalized through saving & printing.


Thanks!


Dawn

This topic is closed to new replies. Start a new post to keep the conversation going.
George_JohnsonCorrect answer
Inspiring
Feb 2, 2016 6:37 AM UTC

You can use a custom validate script for a text field:

// Custom validate script

// Convert entry to upper-case

event.value = event.value.toUpperCase();

You can also use a custom keystroke script to convert characters as they are typed by the user, something like:

// Custom keystroke script

event.change = event.change.toUpperCase();

To convert to lower-case, use the toLowerCase method.

4 replies

George_JohnsonCorrect answer
Inspiring
Feb 2, 2016 6:37 AM UTC

You can use a custom validate script for a text field:

// Custom validate script

// Convert entry to upper-case

event.value = event.value.toUpperCase();

You can also use a custom keystroke script to convert characters as they are typed by the user, something like:

// Custom keystroke script

event.change = event.change.toUpperCase();

To convert to lower-case, use the toLowerCase method.

Translate
dawnh65269867
Participant
Feb 2, 2016 11:34 PM UTC

Thank you!  It works great!

Please excuse the dumb question, but where would I insert the custom keystroke script?  Also in the validation area?

Dawn

Translate
Inspiring
Feb 3, 2016 1:47 AM UTC

It is a bit hidden away. First select the Format tab and then select a Format Category of Custom, and you'll see where to enter the script.

Translate