What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How can I show different subsets of my product list, based on a selected option?

    Asked by AshevilleChoralSociety on May 29, 2017 at 04:43 PM

    To simplify, let's say I have a list of 4 products, and based on the option selected from a single-choice element, I want to show a different subset of the 4 products.  So if the user checks option A, I want to show only products 1, 2 and 3, all preselected.  But if the user checks option B, I what to show only products 2, 3, and 4, all preselected.  Then, the user should be able to uncheck any individual preselected products, and pay the resulting total amount (I'm using the Stripe interface).  Can you suggest the best method for doing this?

  • Profile Image
    JotForm Support

    Answered by Kiran on May 29, 2017 at 05:52 PM

    I understand that you want to create sub-products for each product on your form. You may use one of the payment tools on the form and configure sub-products to the products. Please check the following guide that can help you with creating sub-products in the payment wizard.

    https://www.jotform.com/help/264-Create-Sub-Products-Based-on-a-Product-Option

    Hope this information helps! 

  • Profile Image

    Answered by AshevilleChoralSociety on May 29, 2017 at 09:52 PM

    No, that's not the issue; sorry if my explanation wasn't clearer.  We have only 4 products: 1, 2, 3, and 4.  No sub-products.  If you choose option A, I want you to see only products 1, 2, and 3, all pre-selected, with the option to de-select any one or more.  If you choose Option B, I want you to see only products 2, 3, and 4, all pre-selected, with the option to de-select any one or more.  Then in either case, calculate the total automatically for payment.

  • Profile Image
    JotForm Support

    Answered by BDAVID on May 29, 2017 at 10:26 PM

    That is not possible to apply to a payment field. You might consider the following workaround:

    1) You will need to split your products into native fields such as "Single choice" or "Multiple Choice" fields, and assign a value to each option: https://www.jotform.com/help/301-How-to-Assign-Calculation-Value 

    2) You can show the products based on user's answers by applying conditions: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer 

    3) Then perform the calculations: https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget 

    And pass the total to the payment field: https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field 

    Let us know if you need anything else.

  • Profile Image

    Answered by AshevilleChoralSociety on May 30, 2017 at 07:55 AM

    Looks promising, I'll give it a try!  Thanks very much for your help -- Jotform has the best customer support ever!