trouble with condition statements

  • zifboxbiz
    Asked on March 6, 2014 at 9:46 PM

    I'm having trouble with (what I thought) was a simple 'show' condition on a radio button set.

    You can see the form at the URL supplied.

    The problem is with the 'Number of people in this booking' fleld in the Step 1 section.

    In the Step 2 section there is ' Person 2', 'Person 3', 'Person 4'.

    If 'Number of people in this booking' shows 1, then none of the fields (Person 2, Person, 3, Person 4) should appear.

    If 'Number of people in this booking' shows 2, then only 'Person 2'  should appear.

    If 'Number of people in this booking' shows 3, then Person 2 and Person 3 should appear.

    If 'Number of people in this booking' shows 4, then Person 2 and Person 3 and Person 4 should appear.

    I've used conditions that I thought would work (as above), but they don't.
    Any ideas?
  • Ashwin JotForm Support
    Replied on March 7, 2014 at 12:26 AM

    Hello zifboxbiz,

    If I understand your requirement correctly, you want to show the number of textboxes based on user selection of "Number of Premises". Is that correct?

    There is a better way to achieve your requirement. Idea is to move multiple fields inside a form collapse field and show hide this form collapse based on the user selection. That way it is easier to show/hide multiple fields together. The following guide should help you: http://www.jotform.com/help/196-How-to-Hide-or-Show-Multiple-Fields-at-Once-Based-On-a-Single-Conditional-Entry

    I have cloned your form and did the changes to display the form fields based on the user selection. I have deleted the duplicate conditions and you may need to add them as per your requirment in the existing conditions. Please take a look at the following form and see if this is what you wanted to achieve: http://form.jotformpro.com/form/40648633056961

    Feel free to clone this form in your account. The following guide should help you in form cloning:  http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Do get back to us if you have any questions.

    Thank you!

  • zifboxbiz
    Replied on March 7, 2014 at 1:00 AM
    That's magic. Thanks.
    neville ross


    phone 0416 011 590
    fax 02 4759 1105
    email ngr@zifbox.com.au
    web www.zifbox.com.au

    ...
  • Ashwin JotForm Support
    Replied on March 7, 2014 at 1:24 AM

    Hello Neville,

    You are welcome.

    I'm very pleased that I was able to help you.

    Do get back to us if you have any questions.

    Thank you!