Show specific product based on user selections

  • hdryden
    Asked on February 12, 2019 at 12:22 PM

    Hey there, 

    We are looking into JotForm as a form solution. One of the things we are looking to do is create complex forms (specifically for Skate Camp Sign-ups and rentals) where say... a user selects A from question 1, D from question 2 and B from question 3 then their total for the order is X amount.. (Their total changes based on the answers to their questions like "Are you a member" or "Are you looking for a Full Day or Half Day session".) After poking around in the form creator it didn't seem like there was an easy way to make that happen. 

    Might you be able to tell me whether this is possible with your solution today and if so could you explain how to accomplish this? 

    Thanks!
    HD

  • BJoanna
    Replied on February 12, 2019 at 1:39 PM

    You can assign calculation values to your fields and perform a calculation with the Form Calculation widget. You can then pass the calculation to the payment field. For more details, please check the following guides:

    How to Assign Calculation Value

    How to Perform Form Calculation Using a Widget

    How to Pass a Calculation to a Payment Field

    If you have any issue to set this in your form, let us know. 

  • hdryden
    Replied on February 12, 2019 at 5:43 PM
    Hmm, our prices are a bit more dynamic - for instance, being a member doesn't mean exactly $50 off every camp.
    To go into greater detail...
    We ask the following:
    * Would you like to sign-up for a Full Week Session or a Single Day Drop In?
    * Full Week Session
    * Single Day Drop-in
    * Are you an annual member?
    * Yes
    * No
    * All Day or Half Day session?
    * All Day: 9 AM - 4:30 PM
    * Morning: 9 AM - 12:30 PM
    * Afternoon: 1 PM - 4:30PM
    And then based on the answers our prices (including tax) are as follows:
    * Half Day Member Cost: Drop-in - $55.05
    * Half Day Non-Member Cost : Drop-in - $66.06
    * All Day Member Cost: Drop-in - $93.59
    * All Day Non-Member Cost: Drop-in - $110.10
    * Half Day Member Cost: Full Session - $247.73
    * Half Day Non-Member Cost: Full Session - $275.25
    * All Day Member Cost: Full Session - $412.88
    * All Day Non-Member Cost: Full Session- $467.93
    In our current platform (Wufoo) we use conditional formatting that allows us to say IF the answer to "Would you like to sign-up for a Full Week Session or a Single Day Drop In?" is "Full Week Session" AND "Are you an annual member?" is "Yes" AND "All Day or Half Day Session" is set to "Afternoon: 1 PM - 4:30PM" then SHOW All Day Member Cost: Full Session - $412.88 (which would hide all other options and the customer's total would be $412.88.
    I don't understand how to accomplish the same with your tool... (it seems your version of conditional formatting doesn't allow us to show only one option in multiple choice field).
    Any further guidance is much appreciated!
    Thanks!
    HD
    ________________________________
    ...
  • Elton Support Team Lead
    Replied on February 12, 2019 at 8:46 PM

    The Cost field is a grouped checkbox field so it is not possible to show/hide its specific options only. What you can do is to populate the text options based on the user's answer.

    Example of the cloned form based on your description.

    Guide:

    1. Create Update/Calculate Condition

    155002196002132019 t2VUStwBAw Screenshot 10

    2. Then create a condition like the following.

    155002227102132019 ClQwNyMJoT Screenshot 21

    Here's an example when the condition is met:

    155002234002132019 961sv9IEcW Screenshot 32

    Demo (cloned form): https://form.jotform.com/90428379815972

    On a side note, if you don't want the user to manually check the Cost checkbox field, you can make it read-only in its properties.

  • hdryden
    Replied on February 13, 2019 at 7:43 PM
    Hey Elton,
    Thank you so much for taking the time to provide these instructions, it's really helpful and I appreciate it!
    Is there a way to also hide all the other options (all but the one option that is auto-selected)?
    Thanks again,
    HD
    ________________________________
    ...
  • jherwin
    Replied on February 13, 2019 at 11:36 PM

    If you are referring to this unselected/empty field (see screenshot below) then it is possible using hide and show conditional logic.
    1550118603select the session Screenshot 10
    Guide: How to Show or Hide Fields Base on User's Answer

    However, if you are referring to options where the other option is checked (see screenshot below) then it is not possible. As my colleague said, the checkbox is a group so if you add it to the conditional logic then it is recognized as just one.
    1550118893hide2 Screenshot 21