Arbitrary Mask Question
I'm hoping someone can me clean up the following Arbitrary Mask javascript I'd like to use on a form. My goal is to change it to just 3 alphabet letters. I can't seem to get the script right. Here is where i'm at with this and it's not working.
if(event.willCommit){
var input = event.value;
var pattern = /^(|\[A-Za-z]{3}$|$/);
if (!pattern.test(input)) {
event.rc = false;
app.alert("Input must be either 3 alphabet letters, or blank.");}}
Thank you in advance for any ideas on how to make this work!

