-
commercialkingsAsked on July 18, 2016 at 11:16 AM
My form gives you the option to select a quantity, and I would like to figure how to show different results after the NEXT button is clicked. For example, if you look at my form, if you select 1 DJ DROP and press next, it goes to the next page, that shows 7 rows of fields to enter details, because you can buy up to 7 different things. But I would like to make it where, if you select a quantity of 1, will take you to a separate page,that only shows input fields for the 1 product you are buying, or if you select a quantity of 2, it takes you to a page, that shows fives you the input fields of only the 2 products you are buying, and not the other 5 or 6 you did not select to buy. How can this be done?
-
David JotForm SupportReplied on July 18, 2016 at 12:49 PM
You could use conditional logic to show the fields or sets of fields you would like:
http://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic
https://www.jotform.com/help/196-Hide-or-Show-Multiple-Fields-at-Once
It is also possible to use form collapses to show sections of fields:
https://www.jotform.com/help/297-Show-or-Hide-multiple-fields-at-once-using-form-collapse-tool
If a field is conditionally shown, it will be hidden until the condition is met.
-
commercialkingsReplied on July 18, 2016 at 2:10 PM
Thanks David for your response. It almost was the answer, only problem is, the form conditions wont allow me to hid fields or show fields based on the quantity of items chosen in the options of the Payment Wizard. Basically, if someone goes to my order form, and picks 1 DJ DROP from the payment wizard, I would like it to only show fields for 1 DJ DROP.
https://www.jotform.com//?formID=61994249862976
-
David JotForm SupportReplied on July 18, 2016 at 2:22 PM
Since payment field options cannot be used in conditions, your setup would require setting up your products outside the payment field with regular fields. You would then assign your options calculation values and total up the options, as well as multiplying any product quantities by their cost in a calculation field:
http://www.jotform.com/help/301-How-to-Assign-Calculation-Value
http://www.jotform.com/help/259-How-to-perform-calculation-in-the-form
You would then pass that total to your payment field:
http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field
With this setup, you would be able to use conditional statements on your products since they would no longer be in the payment field.
The following thread has a similar setup with a longer walk through: