• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Script to convert field to all caps?

Community Beginner ,
Jun 04, 2018 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

592

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
community guidelines
Community Expert ,
Jun 04, 2018 Jun 04, 2018

Copy link to clipboard

Copied

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

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

Votes

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
community guidelines
Community Beginner ,
Mar 25, 2020 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!!!!!

Votes

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
community guidelines
Community Expert ,
Mar 25, 2020 Mar 25, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines