Skip to main content
dawnh65269867
Participant
February 2, 2016
Answered

Force Upper or Lower case in Acrobat DC Pro?

  • February 2, 2016
  • 1 reply
  • 14578 views

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 has been closed for replies.
Correct answer George_Johnson

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.

1 reply

George_JohnsonCorrect answer
Inspiring
February 2, 2016

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.

dawnh65269867
Participant
February 2, 2016

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

Inspiring
February 3, 2016

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.