Highlighted

Convert Input to All Caps

Community Beginner ,
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?

Adobe Community Professional
Correct answer by ls_rbls | Adobe Community Professional

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.

TOPICS
Create PDFs, Edit and convert PDFs, PDF forms

Views

29

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

Convert Input to All Caps

Community Beginner ,
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?

Adobe Community Professional
Correct answer by ls_rbls | Adobe Community Professional

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.

TOPICS
Create PDFs, Edit and convert PDFs, PDF forms

Views

30

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
Nov 06, 2020 0
Most Valuable Participant ,
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
Reply
Loading...
Nov 06, 2020 0
Adobe Community Professional ,
Nov 06, 2020

Copy link to clipboard

Copied

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
Reply
Loading...
Nov 06, 2020 0