I am trying to set a query that compares the current users _owner string against a db to see if they've already submitted the form. I have attempted using user _id but that is different for every submission.
Users cannot submit this form twice, so I'm using _owner as that's a consistent variable. Unless there's a different, easier way to do this?
Hi Brett,
Every collection item also includes the _owner of the item, which is the same ID as the one returned by wixUsers.id
https://www.wix.com/code/reference/wix-users.User.html#id
Use this ID to query the form submission collection.
If you get more than 0 results you should prevent the user from submitting, else, allow the user to submit.