Show/Hide Multiple Fields based on value of Quantity

  • RawsonSaunders
    Asked on September 11, 2019 at 4:23 PM

    Hi, I'd like to show/hide multiple fields based on the values in two Quantity fields.   The fields to be shown/hidden are the Name/Email fields that correspond to the types of tickets.  E.g., if 2 paid tickets are selected, and 1 complimentary ticket is selected, then only the first two name/emails for the paid ticket section would appear, and only the first name/email field for the complimentary section would appear.   The trouble I'm running into is that I can't figure out how to get the conditional logic element to prompt me for the numerical value of the tickets selected...?

  • Mike_G JotForm Support
    Replied on September 11, 2019 at 5:20 PM

    We would like to apologize for any inconvenience. I'm afraid what you are trying to do is not possible if the products are listed within the PayPal payment field in your form.

    If you want, you can have the product items including the quantity field of each product created outside the PayPal payment field using the basic form fields. The calculation to produce a total amount will also be created outside the PayPal payment field. You can use conditions and/or the Form Calculation widget to get a total amount.

    How-to-Insert-Text-or-Mathematical-Calculation-into-a-field-using-a-Condition

    How-to-Perform-Form-Calculation-Using-a-Widget

    Once you have already set that up, you can now pass the total amount to the PayPal payment field in your form so that payments will still be processed through PayPal. To do that, please check the information that is in this guide — How-to-pass-a-calculation-to-a-payment-field

    I hope this helps. If you have other questions or concerns, please do not hesitate to let us know.

  • RawsonSaunders
    Replied on September 12, 2019 at 10:58 AM

    Thank you