Hello. I'm newbie to scripting and my problem is similar to those above, but had no luck solving it. I have a field for which I want to set restriction that user has to enter 13-digit number i.e. not shorter nor longer than 13 digits.. If he enters longer or shorter number than that, the field should reset to null. I tried out many combination's, but I'm not even sure under which event to put it.. I think EXIT?
I tried something like this..
var somenr = NumericField1.value;
if (NumericField1.length == 13) {(NumericField1.value = somenr)}
else {(NumericField1 = "")};