Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

How to validate bootstrap select? #341

Open
fisherspoon opened this issue Nov 12, 2020 · 1 comment
Open

How to validate bootstrap select? #341

fisherspoon opened this issue Nov 12, 2020 · 1 comment

Comments

@fisherspoon
Copy link

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

@fisherspoon
Copy link
Author

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" } } }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant