Copy link to clipboard
Copied
How do I have all entries in a fillable form default to capital letters?
Copy link to clipboard
Copied
Go to the Properties dialog of the text field and under Format select Custom, and enter the following under Custom Keystroke Script:
event.change = event.change.toUpperCase();
Copy link to clipboard
Copied
Go to the Properties dialog of the text field and under Format select Custom, and enter the following under Custom Keystroke Script:
event.change = event.change.toUpperCase();
Copy link to clipboard
Copied
Would I have to do that with every box? Is there a way to format the whole document at once?
Copy link to clipboard
Copied
You want to apply it to all text fields in the file? If so, you can do it using this code:
for (var i=0; i<this.numFields; i++) {
var fname = this.getNthFieldName(i);
var f = this.getField(fname);
if (f==null) continue;
if (f.type=="text")
f.setAction("Keystroke", "event.change = event.change.toUpperCase();");
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now