SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I limit the number of values that can be used in a managed metadata column?

I would like to implement a restriction similar to StackExchange, where an entry can have a maximum of 5 tags.

share|improve this question
up vote 1 down vote accepted

You can do it with custom event receiver: ItemAdding and ItemUpdating. Just cut all tags after 5.

share|improve this answer
I would also go for item updating, but I would tell the user that there are to many tags by passing back an error message. – Hugh Wood Nov 14 '12 at 14:55
I think it is better to inform user about that in the description of the metadata field. – Dmitry Kozlov Nov 14 '12 at 14:58
I think that should also be done, but users have to be treated as if they didn't see the warnings when you are working usability. – Hugh Wood Nov 14 '12 at 15:04
Is there anyway to do this without creating custom code? – Ryan Gates Nov 14 '12 at 17:18
I suppose, not. – Dmitry Kozlov Nov 14 '12 at 18:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.