This is commonly used in a survey-type of form. To set this up, you need to go to:
Disable Form section
Turn on Allow users to create new records toggle.
Turn on Allow users to create only one record toggle.
Users can bypass this restriction by using incognito mode or a different browser.