Skip to main content
Participant
June 4, 2018
Question

Script to convert field to all caps?

  • June 4, 2018
  • 1 reply
  • 839 views

Is there a script that will take the users imput & convert to all caps? I'm using Adobe Pro XI. Thanks for the help.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
June 4, 2018

Yes. Use this code as the field's custom validation script:

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

ChristineJJohn
Participant
March 25, 2020

Hi Try!!!

 

Is there any way to have the contents that is put into a field appear in another field that is ALL CAP?  In other words, I have a field named "Company" in several places throughout a form.  When the user enters the Company name in the first field, it is populated throughout the form.  However, I want only the last instance of "Company" to be in ALL CAPS, not everwhere throughout the form.  (I hope this makes sense.)


Thank you in advance for any help you can provide!!!!!

try67
Community Expert
Community Expert
March 25, 2020

Yes, but you'll have to rename it. Let's say it's called "Company1". Use this code as its custom calculation script:

event.value = this.getField("Company").valueAsString.toUpperCase();