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

    Conditional logic is not working properly according to what I have configured.

    Asked by deanmcrabb on August 05, 2013 at 10:01 AM

    Hi,

    I've spent about an hour tonight trying to do something that I thought would be simple.

    http://form.jotformpro.com/form/32163274481957

    On my form, if someone chooses to purchase 3 x names then I want it to show 3 x name fields. If the choose to purchase 2 x names, then show 2 x name fields etc.

    For the life of me I can't work out why it won't display the fields.  I've tried nearly every possible type of conditional combination but none seem to work. Can you please help?

    Cheers

    Dean

    Page URL:
    http://form.jotformpro.com/form/32163274481957

    Screenshot
    multiple fields name purchase 3
  • Profile Image

    Answered by khrisell on August 05, 2013 at 11:31 AM

    Hello,

    I have cloned your form and modified so that it will work accordingly to what you are trying to achieve.

    Kindly check the cloned form here. (Feel free to clone the form so that you will see the changes I have made.)

    http://form.jotformpro.com/form/32163274481957

    Here's the video on how it works.

    Also, Here's the conditional logic that the clone is using.

    Noticed that I have created individual Name field for each condition. 

    Like, there is a seperate Full Name 1 when you enter "2" on the text box and there is another Full Name 1 when you nter "3" (they are not the same Full Name 1.)

     

    Again, here's the link to the clone I have corrected.

    http://form.jotformpro.com/form/32163274481957

     

    Kindly let us know if you have further questions or inquiry.

    Thank you for using JotForm.

  • Profile Image
    JotForm Support

    Answered by guilledutra on August 05, 2013 at 12:11 PM

    Hi, the best way to show multiple fields based on a single condition is using the "Form collapse" field for each Option(Quanity) so you can control which options to show. You can follow this Guide to reach what you need, also I made some screenshoots to illustrate it better:

     

    Take a look if my example fits your necessity  Link 

     

    Thanks!

  • Profile Image

    Answered by deanmcrabb on August 05, 2013 at 09:23 PM

    @khrisell,

    Thanks for your answer but it seems your form is exactly the same link as my form (not a clone) and when I check it on my PC is has the exact same problem.  Did you paste the wrong form?  The logic in your screenshot also looks the same as mine.  So I'm not sure this really solves my problem.

    Here is the logic I have (seems the same as Khrisell) http://screencast.com/t/ohAhKXABCJDd

    Here is the result: http://www.screencast.com/t/QbF9wEcb

    @guilledutra,

    I also had this idea but it seemed overly complicated.  I figured there would be a simpler way.

    I'm questioning why it requires such complicated setup?  Isn't the whole point of the being able to assign multiple actions against a condition so that you can show and hide multiple fields at once? It seems like this simple doesn't work the way it is expected to work.

    Cheers

    Dean

  • Profile Image

    Answered by khrisell on August 05, 2013 at 10:00 PM

    Hello dean,

    Sorry about the link, it seems that I have fixed your form not the clone I did.

    Kindly clear your browser cache and cookies and check that form again on your account.

    Because I have checked the form The People's Truck Donation and it is working now.

    Please clear the browser data and check again. Because it is working properly on my end when I check on you account.

    Please let us know if you need further assistance.

    Here's the Video from your account.