validate.js icon indicating copy to clipboard operation
validate.js copied to clipboard

How to validate bootstrap select?

Open fisherspoon opened this issue 5 years ago • 1 comments

Stuck with bootstrap validation issue select. Perhaps someone came across, I will be very grateful for your help! Example

fisherspoon avatar Nov 12 '20 15:11 fisherspoon

The only thing I came up with was a check for the length of the value (array), if someone knows a more elegant solution, please write

regionSubscribe: function(value, attributes, attributeName, options, constraints){ if(value.length > 0){ return true; }else{ return{ inclusion: { within: [true], message: "^confirm your choice" } } }

fisherspoon avatar Nov 12 '20 16:11 fisherspoon