Someone please help!
I'm trying to use the beforeUpdate hook to stop members joining a collection twice, whereby it checks to see if the owner ID is already in the collection.
Firstly, is this the correct hook or should I use beforeInsert, because there is a possibility where the member hasn't already submitted to the collection so there's nothing to update.
Secondly I'm just checking the use of owner field (as in the standard wix field 'owner'), as field name is owner but field key is _owner. Should I put _owner as the field value in the js-file?
Been hitting a brick wall for two days now, someone please help.