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

    Making a field "required" depending on previous answer

    Asked by stedmunds on September 28, 2012 at 06:23 AM

    Hi,

     

    I have a form for getting free tickets.  The form asks how many tickets you need, and then the names of each person that will be getting a ticket.

     

    Is there any way for me to make the "names of each person getting a ticket" set to required depending on how many tickets the person asked for?  For example:

     

    I go to the website, I say I want 3 tickets.  As soon as I choose "3", the next 3 name fields HAVE to be filled in.

    As it currently stands, I can't force people to fill in those fields, in case they only choose 1 ticket.

    I hope I'm making sense?

     

    Take a look at the website fir a better idea

    Page URL:
    http://www.st-edmunds.com/index.php/2011-03-23-14-37-45/16-general-sch<br/>ool-news/84-2012-mass-application-form

  • Profile Image

    Answered by moonzkie on September 28, 2012 at 06:43 AM

    Hi,

    Unfortunately, this feature is not yet available. Although you can make the first name required.

    Thank You.

  • Profile Image
    JotForm Support

    Answered by NeilVicente on September 28, 2012 at 04:59 PM

    @stedmunds

    A workaround to this limitation can be achieved by hiding the 2nd and 3rd name fields conditionally, depending on the chosen number of tickets.

    Check out this example for a demo: http://www.jotform.me/form/22716811542450?

    You may have it cloned to your account to examine how the conditions work. As a brief explanation, I have set all the name fields as required, then I used conditions to display them only if the corresponding no of ticket is selected.

    Feel free to contact us again should you need further information on this topic. Thanks!

  • Profile Image

    Answered by stedmunds on October 01, 2012 at 03:35 AM

    Thank you SO much!

    That is EXACTLY what I needed.......  although your avitar makes me read your solution in Dexter's voice which, in my opinion, made it even better :)