This is my scenario.
3 open days to let parents and childrens visit the school. On each day the school will hosts max 80 person per visit and on each day will be 2 visits (3.00PM and 5.00PM).
Users can book the visit choosing the day and time. Also he can choose how many people will attend with him. So for example a user can make a booking for him and his 2 children, so 3 people in total. So now, 80-3=77. This is the available seats remaining for a day for a session. I want to show this remaining number (77), so that other people can see how many remaining seats are available. Also, when the counter number is zero I want to disable the session option for that day.
Whats the best way, and how to manage this scenario in chronoforms 7?
Thanks in advance.
3 open days to let parents and childrens visit the school. On each day the school will hosts max 80 person per visit and on each day will be 2 visits (3.00PM and 5.00PM).
Users can book the visit choosing the day and time. Also he can choose how many people will attend with him. So for example a user can make a booking for him and his 2 children, so 3 people in total. So now, 80-3=77. This is the available seats remaining for a day for a session. I want to show this remaining number (77), so that other people can see how many remaining seats are available. Also, when the counter number is zero I want to disable the session option for that day.
Whats the best way, and how to manage this scenario in chronoforms 7?
Thanks in advance.
Hi crealiagroup,
In the form load event add a database query + PHP to check the available places and add this to the form data; include it in the form as a hidden input. In the form use JavaScript to check the submission is valid. After submission double check that the places are still available and update the database.
Bob
In the form load event add a database query + PHP to check the available places and add this to the form data; include it in the form as a hidden input. In the form use JavaScript to check the submission is valid. After submission double check that the places are still available and update the database.
Bob
Thanks for suggestion. Instead of a hidden field I think I can use just a normal displayed field because I want to show the value when user select the date/time value. I'll try to check your process suggestion. I'll keep you updated. Thanks.
Hi Bob, we are struggling creating the whole process in CF7. Could you please guide us step by step ?
You need to login to be able to post a reply.