Skip to main content
Participant
November 2, 2022
Question

Acrobat DC Form Combs UPPER CASE stipulation for State 2 character field

  • November 2, 2022
  • 1 reply
  • 311 views

Can anybody suggest how to require UPPER CASE for data entry in a two-character (US State) field when using Form Combs? Thanks.

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
November 2, 2022

As custom keystroke script use this:

event.change = event.change.toUpperCase();

Participant
November 2, 2022

Thanks, Nesa,

I'm not a developer and have always used the UI and haven't added scripts before (so please excuse my lack of knowledge). I tried to 'Run a JavaScript' in the (Properties) actions tab using OnFocus or MouseUp, but neither worked. I'm obviously not doing this correctly. Could I please ask you to point me in the right direction on how to apply a custom keystroke script to this form comb so I can work through it and learn?  Thanks very much.