I’ve continued working on this and created my own RSVP page. To test it I’ve using the slug from an event that has all of the fields defined.
The process is
-
Retrieve the event settings by using a wixData.query on "Events/Events" collection. -
Run a wixData.getForm to retrieve all of the rsvp fields. -
Retrieve the personal information via GetCurrentMember() and populate the default values on my form. -
When the user clicks Submit the data from the form is used to build the formValues -
The formValues are checked for validity by calling form.validate() using the formValues as the input argument. -
If the formValues pass the validity checker then a RSVP is created by calling wixEvents.rsvp.createRsvp with the eventId and formValues as arguments.
It’s behaving in exactly the same way as the standard Wix Events Registration page even returning an error if the user has already booked or there’s insufficient places.
I simply can’t see a reason for the registration settings being unavailable when using a different page.
Any comments?