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

Convert Input to All Caps

Explorer ,
Nov 06, 2020 Nov 06, 2020

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
2.0K
Translate
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
2 ACCEPTED SOLUTIONS
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();

View solution in original post

Translate
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
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.

View solution in original post

Translate
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

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

Translate
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
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.

Translate
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