Avatar

Not applicable

if (xfa.event.newText.length > :smiling_face_with_sunglasses:

     xfa.event.change="";

That will work with both text and numeric input. It's also a bit shorter and easy to manipulate.

Kyle