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

281

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

correct answers 2 Correct answers

Adobe Community Professional , 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();

Likes

Translate

Translate
Adobe Community Professional , 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.

Likes

Translate

Translate
Adobe Community Professional ,
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();

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
community guidelines
Adobe Community Professional ,
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.

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