Hi All,
I have a problem where i would like to restrict a user to create only 2 items in a sharepoint list.
eg. User A can create 2 items in a list, User B can create another 2 items in the same list but User A cannot create more than 2 items in the list, same for all other users as well.
Can you please help me this.
Thanks.
Another approach would be to add some CSOM or JSLink to the NewItem.aspx page for the list. Â The CAML query would filter the list by the user (Created By) and then count the items. Â If it’s equal to 2 then redirect them to a page with the message that they can’t add anymore items.
If you are writing server side code then you can use list item event receivers to restrict user to create more than two items.