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

    Show multiple fields based on option selected in a spinner

    Asked by ab on June 03, 2016 at 12:32 PM

    Hi,

    I am trying to create a form in which by using "the spinner" clients can select the quantity of the product to purchase. After that lets say for example they chose 1, then they will have the option to customize that item by using radio buttons. My problem is that the quantity can go from 1 item to 200 items, so I would like to automate the process of creating a new radio button for every item they choose to buy. Please help me to find a viable solution without the tedious work of creating individual logic configurations to each quantity.



    This is a re-post of a comment on Smart Forms Using Conditional Logic

    create a form radio buttons problem purchase
  • Profile Image
    JotForm Support

    Answered by david on June 03, 2016 at 12:51 PM

    If you need to show a set of options conditionally based on the number selected in the spinner, you would indeed need to set up individual conditions.  You could show the options in sets:

    http://www.jotform.com/help/196-Hide-or-Show-Multiple-Fields-at-Once?updatemessage=892245969

    Though it would still require a condition for each set.

    If you'd rather allow the users to add sets of fields directly in the form, you could use a configurable list widget:

    http://widgets.jotform.com/widget/configurable_list

    This would allow you to create a set of fields that will allow users to add more sets as needed.  However, there is no way to show a certain number of sets in the widget based on the value selected in a previous field.