I have a field that allows entries of 1 to 100, or the value "r" or the value "i" or the value "na"
My script looks like this, but it continues to allow duplicate entries of the "i" and the "r" when the
"i" is entered on the change* event. What is missing?
if (xfa.event.chan ge!="" && !xfa.event.newT ext.match(/^[0-9]+(\+|-)?$|^(na?)?$|^( r)?$|^(i)/)) {
xfa.event.chang e ="";
xfa.host.beep(" 3");
}
My script looks like this, but it continues to allow duplicate entries of the "i" and the "r" when the
"i" is entered on the change* event. What is missing?
if (xfa.event.chan ge!="" && !xfa.event.newT ext.match(/^[0-9]+(\+|-)?$|^(na?)?$|^( r)?$|^(i)/)) {
xfa.event.chang e ="";
xfa.host.beep(" 3");
}
Comment