Skip to main content
February 21, 2012
Answered

Change text to uppercase in a PDF Form

  • February 21, 2012
  • 2 replies
  • 84882 views

Hi,

Im very inexperienced in Adobe and have recently begun creating some forms for users to fill in.

I need to know how I can make the field automatically change what ever has been written in a text box to uppercase, and also if its possible just to change the first letter to upper case.

any help is greatly appreciated.

Thanks

This topic has been closed for replies.
Correct answer try67

You can use the custom format script, like this:

To convert the inserted value to all upper-case:

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

To convert just the first letter to upper-case:

event.value = event.value.substring(0,1).toUpperCase() + event.value.substring(1);

2 replies

shawne8709770
Participant
September 12, 2019

Please help! The forum is acting buggy so please excuse if this is a duplicate. I'm trying to export data from a pdf form to a .csv, and keep the case (all caps). I'm using the following JS: 

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

When the data is exported it displays in the .csv file in the case that was orginaly entered into the form. Is there a way to export the data and keep the case format?

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
February 21, 2012

You can use the custom format script, like this:

To convert the inserted value to all upper-case:

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

To convert just the first letter to upper-case:

event.value = event.value.substring(0,1).toUpperCase() + event.value.substring(1);

July 29, 2019

This really helped but I ran into one issue.

It works great for 1 word that has been input as lowercase.  Is there an option for inputs of all caps? or if there is an hyphenated name?

The examples below arent producing the desired results.  Is this possible?

THOMAS should change to Thomas but it remains THOMAS

thomas jones should change to Thomas Jones but it changes to Thomas jones

thomas-jones should change to Thomas-Jones but it changes to Thomas-jones

Thanks!

JT

Participating Frequently
November 2, 2019

Look at reply of try67.


please provide javascript to change it to proper case