Use this as the custom validation script for that field:
var alphaNumericPatt = /^[0-9a-zA-Z]*$/;
event.rc = alphaNumericPatt.test(event.value);
As noted you need to use the RegExp object of JS. Your RegExp string for testing could also be "/^\w*$/".
Hi, thanks for the quick response. I must be slow. Copied script and it still let me put both into the field. Deleted 0-9 and it still let me put in numerice. Also, do I need to change event.value to event.(Field Name)?
1 person found this helpful
Don't change anything in the code.
Make sure you place it as the custom Validation script, not anything else.