Hi @giandani
I hope you are doing well today.
Please check this example and import that form to your site:
https://pastebin.com/dSEaCs9h
1. Radiobutton with courses:
– course1
– course2
============
2. 4 x separate checkbox, where each checkbox is a separate date.
Each of those 4 has Visibility set up in a way if the radiobutton IS : course1
============
3. Calculations field as hidden (not hidden field, but Calculations and in the settings tab for Field Type select hidden)
Calculations in that field will be:
{checkbox-1}+{checkbox-2}+{checkbox-3}+{checkbox-4}
============
4. Another Calculation field with its own calculation
{calculation-1}
Visibility SHOW /ANY
checkbox 1 is date 1
checkbox 2 is date 2
checkbox 3 is date 3
checkbox 4 is date 4
At this point you have a form which show Calculation as TOTAL PRICE of random dates from course1
============
5. 4. Another Calculation field with its own calculation
{calculation-1}/100*90
to generate discount as rules looks almost the same
Visibility SHOW /ALL
checkbox 1 is date 1
checkbox 2 is date 2
checkbox 3 is date 3
checkbox 4 is date 4
This time it is ALL, not ANY. So that field will show up if all dates from that course1 will be selected.
At this point you show up to client 2 calculations:
– TOTAL PRICE
– PRICE AFTER discount
============
6. Repeat step 2 so you will generate 4 x separate checkbox for course2
7. Repeat step 3, 4 and 5 so you could have different calculations, as from this point you will rely on checkbox 5, checkbox 6, checkbox 7, checkbox 8 for course2.
Same for calculation, you will rely on calculation-4, calculation-5, calculation-6.
============
Of course, this is simple scenario for courses such as radio buttons. Thigs will be more complex if each course will be a checkbox as well and you would allow to book dates for different courses in 1 shot.
At the end you will need to set up Stripe field and rely on Payment Plan, where:
– for 1st of plan you select field “TOTAL PRICE” + Conditions IF “TOTAL PRICE” is greater than: VALUE
– for 2st of plan you select field “PRICE AFTER discount” + Conditions IF “PRICE AFTER discount” is less than: VALUE
– for 3rd of plan you select field “TOTAL PRICE2” + Conditions IF “TOTAL PRICE2” is greater than: VALUE
– for 4th of plan you select field “PRICE AFTER discount2” + Conditions IF “PRICE AFTER discount2” is less than: VALUE
Kind Regards,
Kris