Hello!
I have trouble setting up validadors on my form.
A general problem is that it is not well documented – do you have a single place where ALL possible “actions” are listed and explained?
I have several concrete problems. Here is one of them… A text-input should be checked ONLY when user types something, so I used ‘keyup’:
rules: [ { input: '#npr_txt_alias', message: 'This field is mandatory', action: 'keyup', rule: 'required' }, { input: '#npr_txt_alias', message: 'Maximum lenght of this field is 10 characters', action: 'keyup', rule: 'maxLength=10' },.........
However, the validator’s message appears as soon as this text-box gets the focus and before he types anything. As the field is initially empty – this annoying message appears each time user is on this form and before he even types something.
Can you please help me with this?
Thank you,
Aleks.