teft field entry restriction

I want to make sure a user can only enter a 4 digit numeric value in a "short answer" text entry field.I've set the length to 4 characters. But how do I restrict alpha entries?

Discussions have been disabled for this post