You can use this code as the custom validation script:
event.rc = /^\d*$/.test(event.value);
Does not work.
I tried inputting that code in the "custom calcuation script" in the field itself.
Forgot to mention, they user needs to input 4 digits (last 4 of social).
Read my post again...
Thanks. I'm an idiot: forgot there was a "valadiation" tab: never used it till now.
BTW, is it possible if you could disect that code?
How does this mean: digits only, max only 4?
I am thinking in future applications to use this in an if statment.
Ah, it doesn't, actually... It means digits only, zero or more.
It's possible to edit the code to allow 4 digits max, but you can also simply set the maximum characters property for the field.
Regarding the code, it's called a Regular Expression. If you google that term you'll find a lot of information about this very powerful matching syntax.