View Full Version : maskRe for textfield

22 Jun 2012, 4:15 AM
Hi all. I hope you can help me with maskRe of a textfield.
I need this maskRe but i can not solve it to work after a lot of try:
1. only 5 digits
2. between 10001 and 19999

Thank You for reading this post. I am looking forward on your help.

23 Jun 2012, 5:25 AM

MaskRe filters char input, so you can use "regex" or a number field with max and min value.

xtype:'textfield',fieldLabel: 'test',maskRe:/[0-9]/,regex: /^1[\d]{4}$/

25 Jun 2012, 2:52 AM
Thank You. I just tried it and it is working great.

Thnx again :)