Hi apache click folks,

I have been trying to make my app take a NumberField only if 5 digits are
input. With controls like TelephoneField all I have to do is set its
minimum length to whatever I want it to and the app will display an error
if minLength or maxLength aren't met. However, NumberField seems to ignore
minimum length, even though the documentation states that there are error
messages mapped for NumberFields for min or max length errors. I would like
to know if there is an appropriate NumberFormat that will force this field
to 5 digits, so far I've used setPattern("#"), setPattern("#####"),
setPattern("00000"), setPattern("12345"); all to the same results; and I
would also like to know what is the proper way to override its validation
and do my own thing, because that seems to be another way to accomplish
custom validations, right now this field is only validated when it gets no
input (setRequired).

Thanks and happy 2012,

Reply via email to