-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I have an input-group for first and last name. When I use your sample code I get both first and last name fields colors changed to red if one of them is empty.
Here is the template.js file
Template.DonationForm.rendered = function () {
$('.donation-form').bootstrapValidator({
message: 'This value is not valid',
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
fname: {
message: 'The name is not valid',
validators: {
notEmpty: {
message: 'First name is mandatory'
}
}
},
lname: {
message: 'The name is not valid',
validators: {
notEmpty: {
message: 'Last name is mandatory'
}
}
}
}
});
};
Metadata
Metadata
Assignees
Labels
No labels
