Hi
There are three combo boxes in my form (brand / product / supplier).
I need to use “Validator” to show an error when user doesn;t select any of boxes.
Is it possible something like …
rules: [
{
input: ‘#productHierSearchButton click’, message: ‘Select one of search field(s).’, action: ‘keyup’, position: ‘right:20,0’, rule: function (input, commit) {
var brand = $(“#comboBoxBrand”).jqxComboBox(‘getSelectedItem’);
var group = $(“#comboBoxGroup”).jqxComboBox(‘getSelectedItem’);
var subgroup = $(“#comboBoxSubGroup”).jqxComboBox(‘getSelectedItem’);
if(brand && group && subgroup) {
return true;
} else {
return false;
}
}
}
Thanks