How to set a lookup column to have unique values

Raj Shekar 21 Reputation points
2020-08-05T11:47:37.467+00:00

How to set a lookup column to have unique values

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,588 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Itch Sun-MSFT 2,556 Reputation points
    2020-08-06T01:45:14.737+00:00

    What mode do you use? Modern or classic?

    There is no OOB method to enforce unique values in a lookup field. Also, currently, it is hard to insert code into modern experience.

    You should switch to classic experience for this list. Then you can use code to set unique value for the lookup column. Just add the code into NewForm.aspx page.

    You can refer to below article:

    Removing Duplicate values from a Lookup field

    Please note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.