'How to prevent Forms from creating new entry even after setting the primary key

I have form that collects information from User and stores the information on a fusion sheet. I have set the User ID as primary key, However the user is able to make multiple entries in the form with the same User ID.

How can i set the primary key so that there is no duplicates records in the fusion sheet.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source