Script to convert field to all caps?

Community Beginner ,
Jun 04, 2018

Copy link to clipboard

Copied

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

TOPICS
Acrobat SDK and JavaScript, Windows

Views

84

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Script to convert field to all caps?

Community Beginner ,
Jun 04, 2018

Copy link to clipboard

Copied

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

TOPICS
Acrobat SDK and JavaScript, Windows

Views

85

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 04, 2018 0
Most Valuable Participant ,
Jun 04, 2018

Copy link to clipboard

Copied

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

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2018 0
Community Beginner ,
Mar 25, 2020

Copy link to clipboard

Copied

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!!!!!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 0
try67 LATEST
Most Valuable Participant ,
Mar 25, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 0