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);

February 21, 2012

Thanks for the super fast response try67, i will give it a go now and see how it works.

On a different note, is there any way to export(or update) the filled data to a .csv file

try67
Community Expert
Community Expert
February 21, 2012

Yes, in Acrobat X go to Tools - Forms - More Form Options - Manage Form

Data - Import Data or Export Data