How to limit the number of choices in a multiselect

I'm trying to limit the number of choices made in a multiselect to no more than 3. Is there a way to do this in Sugar?