As for me, I’d suggest doing this manually.
According to my understanding, the ticket should contain some personal info, which is unique to the exact user. So the entry in DB could be created upon submitting the info.
If this is not the case, when the number of passengers is 2-3-4, it will be easier to add 4 create actions and make them conditional (depending on the passenger quantity).
Mass creation with countdown timer is possible, but the whole setup is pretty complicated. I’ve made a POC for that, but decided not to make a tutorial - the whole process is quite cumbersome.
when the number of passengers is 2-3-4, it will be easier to add 4 create actions and make them conditional (depending on the passenger quantity).
How is this done in Adalo?
Im using a drop down for the number of pax and for the 4 create actions, are you referring to the form creation? or custom button with create action?
Dropdown doesn’t provide any way to do any action.
Probably at the end of the screen you have some button “Create booking”, where you have all the actions. So what I would do - I’d set up the actions for this button like this:
Create new booking
Create ticket #1
Create ticket #2 and link it to the booking (conditional: if number of pax > 1)
Create ticket #3 and link it to the booking (conditional: if number of pax > 2)
Create ticket #4 and link it to the booking (conditional: if number of pax > 3)