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

    How to add Condition logic on the form

    Asked by nbuskirk on February 05, 2014 at 12:22 AM

    I made a baseball registration form.  we have multiple age levels for people to sign up for.  My question is can I make the form so it will only let them sign up for the age level that the child is supposed to be in?  So in other words if they are 9 years old and sign up for the 11 and 12 year old age group it will not allow it.  Is this possible?

    Page URL:
    http://www.baltimoreyouthbaseball.com/Baltimore_Youth_Baseball_Associa<br/>tion/Online_Registration.html

    registration form and
  • Profile Image
    JotForm Support

    Answered by jonathan on February 05, 2014 at 04:01 AM

    Hi,

    This can be achieved using Condition Logic on the form. Please use the guides below for reference.

    1. -Smart-Forms-Using-Conditional-Logic

    2. -How-to-Hide-or-Show-Multiple-Fields-at-Once-Based-On-a-Single-Conditional-Entry

    3. -How-to-perform-calculation-in-the-form

    Understanding the 1st guide should be enough to apply in your form to achieved your requirement.

    I included #2 and #3 to give you additional reference on how to even make the condtions setup better.

    Hope this help. Please inform us if you need further assistance.

    Thanks!

  • Profile Image

    Answered by nbuskirk on February 05, 2014 at 08:30 PM
    This doesnt work because i need to only show one payment option depending on birth date. this will only allow me to show or hide whole fields not certain product payments.
    ...
  • Profile Image
    JotForm Support

    Answered by jonathan on February 05, 2014 at 09:46 PM

    Hi,

    You were right, the condition logic functionality is not applicable in creating rules that affect payment options. 

    BUT what I think you can do is to create condition rules that will prevent the submission of the form if 2 combine rules are false.

    Example: 

    Hide the Submit button if the current age is 9 and the payment selected is Instructional T-bal (3-4 years old)

    So, if the 2 conditions do not much, the form will not be submitted.

    Hope this help. Inform us if you require further assistance.

    Thanks.

  • Profile Image

    Answered by nbuskirk on February 06, 2014 at 04:50 PM
    ok this worked when i first did it now its not doing anything on my site. I have attached a screenshot of my conditions and a link to the site. not sure why it wont hide the submit button now.
    http://www.baltimoreyouthbaseball.com/Baltimore_Youth_Baseball_Association/Online_Registration.html
    ...
  • Profile Image
    JotForm Support

    Answered by Mike_T on February 06, 2014 at 06:16 PM

    I think that your conditions are conflicting between each other.

    Can you please try another way? For example:

    1. Add a separate Submit button for each product to avoid conflicts.

    2. Use conditions like (for each product):

    If Age and Option is correct
    Then Show Submit Button
    (different Submit button for different options)

    This way you will have a separate Show condition for each product, so this will work very similar to Hide conditions.

    Thank you.