Using conditionals to show only specific appointment calendars

  • MakerKids
    Asked on May 10, 2022 at 3:04 PM
    But more importantly, I need to figure out how I can offer users both 1h
    and 2h classes, and then show them the corresponding pricing (and not both
    prices). Kind of like we display it on app.makerkids.com. I guess once they
    choose topic and child experience, for some classes we might prompt them do
    they want a 1 hour class per week or a 2 hour class per week - and then
    show them calendars accordingly. Then once they select one, it shows the
    corresponding price (and not the other price).
  • Parker JotForm Support
    Replied on May 10, 2022 at 3:21 PM

    Hi Jennifer,

    In order to show multiple calendars and prices, what you'll want to do is change your form to take user defined amount. Once you have changed to a user defined amount you can create your products outside of the product list. You'll be able to set calculation values on fields and then do calculations in order to get the final value you send to the payment processor.

    You'll then want to create conditional statements so depending on what they select, you'll be able to show only certain fields.

    I made a demo form that shows an example of how you could set this up to show different calendars based on different conditions and then calculate a total. You can clone this form to see exactly what I've done also.

    Give this a try and let us know if you have any other questions.


  • MakerKids
    Replied on May 10, 2022 at 3:55 PM
    Thank you!
    I have multiple different calendars I need to show (based on other user
    inputs)
    So if they select coding as a topic they want to learn and level as beginner
    The next question would be 1 hour class or 2 hour class
    Then if 1 hour they would see a coding beginner 1h calendar
    Then if 2 hour they would see a coding beginner 2h calendar
    Whereas if they select intermediate they would only see a coding
    intermediate 2h calendar
    Any tips on how to accomplish this? Appreciate your help
    ...
  • Parker JotForm Support
    Replied on May 10, 2022 at 5:21 PM

    Hi Jennifer,

    I've made some modifications to the demo form. When they select beginner, the option to select 1hr or 2hr shows up and then when they select that the calendar appropriate for for beginner 1hr or 2hr shows. If they choose intermediate, then the 2hr intermediate appointment calendar shows. If you have additional steps, you'll just want to make sure that you create conditions to show the next appropriate step in the process.

    Let us know if you have any other questions.

  • MakerKids
    Replied on May 10, 2022 at 5:33 PM
    Thank you! Is there a way to make it so that if they select Coding as their
    topic (before selecting experience level), and then select 1 hour, it will
    show a coding beginner calendar?
    But if they select Minecraft, then intermediate, then it will show a 2 hour
    Minecraft intermediate calendar?
    Jenn
    ...
  • Marina_V
    Replied on May 10, 2022 at 9:26 PM

    Hello Jenn,

    Thank you for your update. Yes, that will be possible. You can  clone the form that my colleague created and try to create the condition as per your requirement following the guide.

    Let us know if you have any other questions.

  • MakerKids
    Replied on May 18, 2022 at 8:11 PM
    Hello!
    We tried it https://form.jotform.com/221355727372255
    But it is still showing both payments
    How do we make it just 1
    *Jennifer Turliuk*
    *CEO*
    MakerKids
    *Direct: 647-931-8530*
    *Email: jenn@makerkids.com *www.makerkids.com | LinkedIn
    | Facebook

    *Try a MakerKids class on us. Sign up today!
    *
    *Give 25, get 25. Tell your family or friends about us, give them $25
    applicable on their first courses, and get $25 as a token of our
    appreciation. Thank you*
    Sent via Superhuman
    ...
  • Mightor JotForm Support
    Replied on May 18, 2022 at 9:08 PM

    Hello Jennifer,

    I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.


  • Mightor JotForm Support
    Replied on May 18, 2022 at 9:51 PM

    Hello again Jennifer,

    Thanks for your patience, we appreciate it. In your form, you will need to Assign Calculation Value to the Single Choice Field called 'Would you rather sign up for 1-hour or 2-hour classes?' which corresponds to the pricing that you have:

    1652924418 6285a00291b80 calculation Screenshot 10


    Then add a Form Calculation Widget to extract the amount from the chosen option in the Single Choice Field. For simplicity name the field Price and hide it:

    1652924524 6285a06ca59b7 calc Screenshot 21


    Finally change the Payment Type of your Payment Gateway to User Defined Amount as mentioned by my colleague. Then assign Get Price From to the Form Calculation Widget that was created above called Price:

    1652924651 6285a0eba7893 rem Screenshot 32


    Here's the screencast from the test I made:

    1652924934 6285a2061e689 test1 Screenshot 43


    You can view and clone the above demo form here.

    Give it a try and let us know how it goes.