SharePoint: How to have a unique constraint in a list?
-
20-09-2019 - |
Question
In SQL its possible to have fields that cannot contain duplicate data.
How is this possible in SharePoint?
Lets say you have a list containing values like
ORANGES
APPLES
PEARS
How do you ensure that the user cannot enter
ORANGES
APPLES
PEARS
ORANGES
Thanks
Solution
This can't be done out of the box. But there are these community solutions:
- SPListConstraints (free but not open source)
- Unique Column Policy (open source, original solution by Scot Hillier)
OTHER TIPS
Looks like this can be done in 2010
If you go to your list settings and click on the column there is the option "Enforce unique values"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow