Thanks Bruce,Someone else gave me the following and it works just fine:if (event.value) { event.rc = /^\d{5,7}$/.test(event.value); if (!event.rc) app.alert("You must enter between 5 and 7 digits.");}Do you know where I can read up on: /^\d{5,7}$/.test(event.value)Regards,JeffJeff HillLions Cl...