Prevent duplicate entries in a SharePoint list using Jquery

Michele DuBose 131 Reputation points
2022-01-27T02:25:30.743+00:00

Hello,

I have to prevent duplicate values based on two columns. I've tried the code referenced here: https://www.codeproject.com/Tips/1205585/Unique-Entries-Based-on-Multiple-Columns-in-Sharep. However, it is not working. I'm using SharePoint Server 2016 on premise.

I'm aware there's a built in function (enforce unique values). However, this does not work with multiple columns.

Is there a way to prevent duplicate entries in SharePoint?

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,624 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 36,651 Reputation points Microsoft Vendor
    2022-01-27T09:27:20.87+00:00

    Hi @Michele DuBose ,
    You can refer to following code to prevent duplicate entries in a SharePoint list
    168859-test.txt


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



1 additional answer

Sort by: Most helpful
  1. Michele DuBose 131 Reputation points
    2022-01-27T15:44:14+00:00

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.