Prevent duplicate entries in a SharePoint list using Jquery

Michele DuBose 131 Reputation points


I have to prevent duplicate values based on two columns. I've tried the code referenced here: 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,567 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 30,586 Reputation points Microsoft Vendor

    Hi @Michele DuBose ,
    You can refer to following code to prevent duplicate entries in a SharePoint list

    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