When a user ‘books’ a class, the number of spaces available should - 1.
For example, if the class has 8 spaces available for the 1st November, and the user books the class for this date, then there should be 7 spaces available for the 1st November.
I’ve got this semi-working. Currently, when a user books the class, it minuses 1 from ALL available dates, not just the date they have selected.
I’ve tried a few different methods and I can’t get it to target just one date (I’ve tried methods that have had it target the first item which didn’t work, along with the current method I’m using).
I initially tried Make changes to a thing but couldn’t populate it with fields that didn’t throw up an error.
I can’t make Thing to change: Current Cell’s CalendarScheduling - it doesn’t give me the option (maybe because it’s not in the Repeating Group?
So my next idea was to ‘Do a Search for’ the cell, but that changes ‘make changes to a thing’ to ‘make changes to a list of things’ and still didn’t work
Sounds like that’s the issue. If the button was in the cell, you’d have that option.
Yes, doing a search for things will give you a list of things, which prevents using make changes to a thing. Try doing a search for the relevant CalendarScheduling then selecting ‘:First Item’. If you’re confident that the search is only returning one item, that should do the trick.
The only issue is that I want the user to first select a time, then enter their payment information, and then click the ‘book’ button (Image below, minus the Stripe payment forms), so I can’t put the book button in the RG itself: