How can I create a value of registration based on specific answers to questions

  • AssocVascularAccess
    Asked on February 25, 2016 at 2:10 PM

    I would like to set it up so that the "member registration" field is hidden, however the payment portion shows and the amount charged is based on specific answers.

    For example,

    If:  "Are you an AVA member" is marked yes AND "Type of Registration" is In Studio THEN the price is $100

    2nd scenario/calculation

    If:  "Are you an AVA member" is marked no AND "Type of Registration" is In Studio THEN the price is $125

    3rd scenario/calculation

    If:  "Are you an AVA member" is marked yes AND "Type of Registration" is Via Webcast THEN the price is $75

    4th scenario/calculation

    If:  "Are you an AVA member" is marked no AND "Type of Registration" is Via Webcast THEN the price is $100

    Is this possible?  Thank you for your help.


    Cindy Anderton

  • Boris
    Replied on February 25, 2016 at 3:32 PM

    Yes, Cindy, this is possible with JotForm forms.

    1. You will need to use a Number field, and set up conditional rules to insert your desired value into this number field based on which options are selected. This number field can be hidden by clicking its gear-shaped icon > Hide Field, so that your users do not see it.

    2. Please take a look at our guide on Smart Forms Using Conditional Logic, and particularly the update/calculate field type of conditions, which we also call the insert conditions. You will use these conditions to insert a desired value into the number field.

    3. You will also need to use a Form Calculation field, and set it up so that it only calculates the value of the Number field from step 1. As our conditions will update the Number field, that same value will automatically go to the Form Calculation field as well.

    Please take a look at our guide on how to perform calculation in the form.

    4. Finally, we will be passing the value from the calculation field into the payment tool for accepting payments.

    The reason why we can't conditionally update the calculation field directly is because calculation on condition would conflict, so we are conditionally updating the value of a number field, and than the calculation can take that conditional value and pass it on to the payment tool.

    Let us know if you need any further assistance in setting it up, and we will be glad to assist.

  • AssocVascularAccess
    Replied on February 25, 2016 at 6:45 PM
    I understand what is being said below, except I’m not sure exactly how to tie it into my form. I don’t have a quantity of product. I have 2 different fields that determine the amount (member/non-member and type of registration). Since neither of them are an amount field I don’t know how to tie all the instructions together below.
    ...
  • Chriistian Jotform Support
    Replied on February 25, 2016 at 9:22 PM

    I checked your form and I can see that you were successful in adding the conditions based on your specifications. The prices in the payment field change depending on the conditions that you have previously stated.

    How can I create a value of registration based on specific answers to questions Image 1 Screenshot 20

    If you have any other concerns, feel free to contact us again.

  • AssocVascularAccess
    Replied on February 25, 2016 at 9:45 PM
    Yes. But can you see that there is a "0" missing at the end of each of the values? How do I fix that?
    Cindy Anderton
    iPhone
    ...
  • Chriistian Jotform Support
    Replied on February 26, 2016 at 12:43 AM

    To remove the decimals, simply follow the steps below.

    1. Open the conditions wizard.

    How can I create a value of registration based on specific answers to questions Image 1 Screenshot 60

    2. Click the Pencil icon to edit the conditions.

    How can I create a value of registration based on specific answers to questions Image 2 Screenshot 71

    3. Press backspace on your keyboard to remove the decimals on the calculation field.

    How can I create a value of registration based on specific answers to questions Image 3 Screenshot 82

    Do the same to the rest of the conditions until all of them have no decimals.

    How can I create a value of registration based on specific answers to questions Image 4 Screenshot 93

    As you can see, the total value now has no decimals.

    How can I create a value of registration based on specific answers to questions Image 5 Screenshot 104

    If you need further assistance, please let us know.