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

Convert Input to All Caps

Explorer ,
Nov 06, 2020 Nov 06, 2020

Copy link to clipboard

Copied

I have a user input text box.  I have set an arbitrary mask format to AAA9999-99999.  Is there a way to set the AAA part to be all capital letters when the user inputs their text?

TOPICS
Create PDFs , Edit and convert PDFs , PDF forms

Views

1.3K

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

correct answers 2 Correct answers

Community Expert , Nov 06, 2020 Nov 06, 2020

Not while they're typing (unless you create your own custom Keystroke script), but you can do it when they exit the field, using this code as the custom Validation script:

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

Votes

Translate

Translate
Community Expert , Nov 06, 2020 Nov 06, 2020

I think you can use something like a custom keystroke script like this:

 

event.change = event.change.toUpperCase();
event.value = util.printx("AAA9999-99999", event.target.value);

 

It may be a more elegant way to accomplish this via scripting.

Votes

Translate

Translate
Community Expert ,
Nov 06, 2020 Nov 06, 2020

Copy link to clipboard

Copied

Not while they're typing (unless you create your own custom Keystroke script), but you can do it when they exit the field, using this code as the 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 Expert ,
Nov 06, 2020 Nov 06, 2020

Copy link to clipboard

Copied

LATEST

I think you can use something like a custom keystroke script like this:

 

event.change = event.change.toUpperCase();
event.value = util.printx("AAA9999-99999", event.target.value);

 

It may be a more elegant way to accomplish this via scripting.

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