These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Force Capitalization

MrChinhNguyen
Registered: Dec 19 2007
Posts: 9
Answered

Does anyone know how to force capitalization within a field?
I tried placing the script in both format and keystroke script under the format tab:
EstProjectReserves.value.toUpperCase()

Can anyone help?

My Product Information:
Acrobat Pro 8.1.2, Macintosh
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
With JavaScript in AroForms either of the following scripts will work, one on keystroke the other on exiting the field.

Custom keystroke (to capitalize on keystroke):

if (event.willCommit == false) {
event.change = event.change.toUpperCase();
}

For the custom format field (to format on exit):

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

George Kaiser