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.
I want to hide fields unless that specific number is chosen in a different field.Asked by amacindoe on May 06, 2013 at 05:28 PM
I have multiple fields one is a number spinner, 1-10, the other are Attendee 1, attendee 2 etc. through 10. I want to make the fields correlate to one another. So say if I have 3 in the number spinner, attendee 1 shows, attendee 2 shows and attendee 3 shows. Or if I have 5, attendee 1 shows, attendee 2 shows, attendee 3 shows attendee 4 shows, and attendee 5 shows.
So far I have tried every type of hide/show condition and continue to be unsuccessful.I don't think what I'm asking is that crazy. Please help.
Conditions can be tricky to work with but I'll see how best they can be altered and get back to you.
Please test the functionality of this form and then clone it and have a look at its conditions. Once a SHOW condition is attached to a field, that field will be hidden under all other circumstances. (Keep this in mind as you read on.)
Basically, the key is to ask yourself: "When do I want field x to be shown?" For instance, under what conditions should the Attendee 1 field be shown? The answer is when the Number of Attendees field is equal to 1, 2, 3, 4, 5, 6, 7, 8, 9 or 10. In other words, since those are all of the available choices in the drop-down, show the Attendee 1 field when (if) the Number of Attendees field is filled:
(This means that the only time that field won't be shown is when the blank choice in Number of Attendees is selected.)
What about the other end of the scale (the Attendee 10 field)? Well, that should be shown only when (if) Number of Attendees is equal to (Equals To) 10:
(Remember what I said to keep in mind? This field will be shown when this condition is matched and hidden otherwise.)
Finally, let's look at one in the middle of the scale (the Attendee 5 field). Under what condition(s) should that be shown? Well, we don't want it shown when any choice from 1 to 4 is selected in Number of Attendees. However, it certainly should be shown if any choice from 5 to 10 (inclusive) is made:
(Due to the nature of drop-downs, only one selection can be made at a time. So, the default [Any] should not be changed to All. Otherwise, the conditions would never be matched.)
Hopefully, this short tutorial has helped to demystify our conditions tool but if anything is unclear, please let us know. We'd be happy to assist you.