I'm trying to do something with the site to prevent double registration for a user. We've got a few events where there is 0 charge for the users, so we are trying to stop them registering multiple times (since it throws numbers off a bit).
Looking through the code, it looks like I can access the events dataset as a whole (https://support.wix.com/en/article/wix-code-wix-events-events-collection-fields) to see what events there are and I can get the current users email back (https://www.wix.com/code/reference/wix-users.html#currentUser), but I can't see any reference to the actual registration dataset to query this and I can't figure out how (on the event details or registration page) to actually get back any sort of event ID.
If it's not possible to query the event registration table directly and some unique Event ID was available, the page can be built to do a insert an event ID + email into a custom dataset and then query that to decide if the registration button is shown or not.
Any ideas or reference links you can point me to on this would be good.