Hi Chris!
Thanks for the response.
I added what you gave me to the exit event but it seems to not work correctly.
This is what is in the script editor now. I am checking the format first and that seem to be working ok. But no matter what put in the text field I am getting the pop up.
///// Verify format
this.rawValue = util.printx("9999999 9",this.rawValue);
if (this.rawValue.length < 9)
{
app.alert("Please enter your Account ID.\n\nThe format is 9999999 9.");
xfa.host.setFocus("Account_ID_Number");
Account_ID_Number.rawValue = "";
}
else
{
this.rawValue = util.printx("9999999 9",this.rawValue);
}
var numFilter = /^[0-2]$/ //(regular expression for a value between 0 & 2)
if (!(numFilter.test(this.rawValue))) //(checks to see if value is met)
{
app.alert("Acount number must begin with 0, 1 or 2.") //(alerts the user )
this.rawValue = "" //(resets the value to blank)
}