When using jquery.validate to validate my form, i can get all error in my form before submit via validator.errorList.
1. If i use ignite comboboxes in my form, how do i get all comboboxes that failed validation?
2. The default behavior is a red message under combobox when it's failed validation. I want to customize this behavior - move the validation message around and remove the default red message. How can i do that?
Hi, Chung.
The validator we are using for our controls is internal and its API is not exposed. That's why I will show you all the events and show you how to get all the options and configure them for you case. Please also read the comments inside the code snippet below. Note that you can check if each single combo is valid, because each on of them has its own validator object.
1. You need to have 'formSubmit' and 'onsubmit' options set to true, and then if you have a handler for 'validation' event, it will be fired on form submit. Then for each one of the igCombo elements on the page, you can check if they are valid or not.
2. Using the validator, options you can customize the behavior of the error message. Or inside the errorShowing event, you can return false, cancel that event, and create your own message.
I will wait for you response, if my answer was useful for you and if it helped you to resolve your case.
Best regards, Nikolay Alipiev
I am just following up to check if you have any further questions regarding this matter.
Best regards,
Nikolay Alipiev