Hi all!
First of all, Great component!
I have a simple booking form where I have the users select a day from the datepicker, then select a tour format, then a tour time from a dropdown containing 15 minute intervals.
I'm trying to accomplish the following:
- Control the booking times depending on the day of the week. For example, the 1 hour museum tour isn't offered on saturday afternoons, but the 30 minute tour is, at certain times.
Thanks in advance for your time.
First of all, Great component!
I have a simple booking form where I have the users select a day from the datepicker, then select a tour format, then a tour time from a dropdown containing 15 minute intervals.
I'm trying to accomplish the following:
- Control the booking times depending on the day of the week. For example, the 1 hour museum tour isn't offered on saturday afternoons, but the 30 minute tour is, at certain times.
Thanks in advance for your time.
Hi afterimage,
Sorry not to have replied earlier. I missed this post.
There are two ways to do this. (a) Using JavaScript in the form to do the necessary calculations. This is possible but problably unecessarily complex. (b) To use Ajax to make a call back to some PHP code in one of the Extra Code boxes that is triggered once a date is selected. This can look up or calculte the available options for that date and return the corresponding info back to the form. it's probably easier than option (a).
Bob
Sorry not to have replied earlier. I missed this post.
There are two ways to do this. (a) Using JavaScript in the form to do the necessary calculations. This is possible but problably unecessarily complex. (b) To use Ajax to make a call back to some PHP code in one of the Extra Code boxes that is triggered once a date is selected. This can look up or calculte the available options for that date and return the corresponding info back to the form. it's probably easier than option (a).
Bob
This topic is locked and no more replies can be posted.