How to specify length constraint of min and max digits on dijit.form.ValidationTextBox programmatically ?
Thanks
How to specify length constraint of min and max digits on dijit.form.ValidationTextBox programmatically ?
Thanks
Copyright © 2021 Jogjafile Inc.
I recommend you to use the 'pattern' option which used regex to manage min and max:
I will explain the pattern: [\\w]{2,4}.
\w: accept letters only.
{2,4}: define min and max letters that are allowed. min is 2 and max is 4.
If you want to unlimit the max, leave it empty like this: {2,}.
You can add \\d AS numbers only or combine then with letters like this: \\w\\d