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 and hide shopping cart products based on selections?

    Asked by CoreyBotwinis on February 09, 2017 at 11:51 AM

    Hello, I have a question regarding my form. I want to divide the shopping cart based on the first selection. If the customer chooses Black, then only black stones are for sale shown. Also, If they choose grey, only the grey stones are shown. How can I do this?

    https://www.jotform.com/build/70313426640144

     

    Thank you for your time.

  • Profile Image
    JotForm Support

    Answered by AIDAN on February 09, 2017 at 01:18 PM

    Hi, thank you for contacting us.

    Upon examination of your form, I noticed that you already make use of the product option feature, to provide both black and gray colors.

    However, there is currently no way to exclude a set of products or options based on the selection of either a product or a form field in general, because in the conditional logic context, you cannot fine tune what product(s) you can show and hide, because you have access to the whole products field.

    The only remaining solution is to create your products outside the payment integration, using form fields, and applying the conditions you would like to have, and perform the adequate price calculations and pass the result to the payment integration.

    I hope this helps. If you have more questions or need further assistance, please let us know. Thank you.