Hi:
Due to limitations within our environment, I have to use text fields to enter in numeric data only. The client would need to be prompted upon entering a letter that this field excepts only numeric characters.
I am using the code below on the change event for the field and it works fine except that the client can not enter decimals or commas. Does anyone know how to escape the period and commas with this expression?
if (xfa.event.change.match(/[0-9\-]/) == null)
{
xfa.event.change = "";
xfa.host.messageBox("Only numbers are permitted for this field.");
}