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.
Conditions, calculations, and inventory widgets: need help making them all work together.Asked by CoralRestoration on December 18, 2015 at 10:46 AM
I hope you can help.
I'm trying to create a form that allows people to purchase up to 6 individual tickets.
1. They can select the # of tickets (Inventory Widget)
2. They see the total they'll be paying (Calculation Widget)
3. I'd like for them to be able to enter for following information for EACH ADDITIONAL TICKET they're purchasing beside themselves:
3a: Guest First + Last Name
3b: Guest email
3c: Guess menu selection
3d: Any additional food restrictions, please note:
This information would be collected for up to 6 guests, and depends on the # of tickets they inputted in the Inventory widget.
But when I try to place a condition on the VALUE of the INVENTORY widget, nothing happens: the guest fields I've set up don't appear.
calculations all and work
Your form already has fields for guests. If I understand it correctly, you want to display the fields for guest 2 if number of selected tickets is 2, display fields for guests 2 and 3 if number of tickets is 3, and so on.
Yes, this can be set up with show/hide conditions.
The reason that you were having troubles with this was due to conflict between the already existing conditions. For example, the conditions based on "I would like" field were already hiding some of the guest name/email fields, and that is why it looked like conditions based on the Inventory widget didn't seem to work. ("I would like" and Inventory widget rules were conflicting each other.)
I have cloned your form and set up the show/hide conditions a little bit differently. What I have done instead, is I've used only the Show rules. This means that when the condition is not matched, the fields will be hidden by default.
I've used a condition to show only the few desired fields when "I would like" is "Individual Tickets", and show all desired fields when it is a "Table Sponsor".
I've also then used 6 conditions with Show Multiple rules for values 1-6 of the Inventory widget:
You can see a demo form with these changes applied to your original form here:
(You can clone it back into your account for closer examination.)
I hope this helps, please let us know if you need any further clarifications or assistance with this. We will be happy to help.