I have created a booking system for a dance school. It works with dynamic pages, i.e. there is data set "classes" containing the course information and the course dates.
Then on the dynamic page there is a user form, that the customer has to fill in order to book the class. So on the dynamic page there is another data set "bookings" for the user inputs, i.e. if the user clicks the submit button the content of input forms is written into the "bookings" data set. However what is still missing is that the course ID, which is in the dynamic data set "classes" is also written into the "bookings" data set such that the owner knows which class the customer has booked.
As far as I understood this has to be done with wix code using " getCurrentItem". However I have not found a code example for this specific problem and I am pretty new on this topic.
I would be happy for a simple code example how to write content of a dynamic page/data set to another data set on form submission.
Thanks a lot and best wishes,