JotForm User Guide / Advanced Features /

Conditional Logic for Online Forms

Conditional Logic for Online Forms

What's a Smart Form?

In the most basic sense, smart forms are dynamic. Instead of static words on a screen, smart forms can change based on how a user answers a question. Want to segment questions to different types of users? Perform complex calculations? Smart forms get the job done.

Smart forms function according to if/then conditions, for instance, if a user is paying for a subscription, then they will be asked about their usage; if a user is not paying for a subscription, then they will be asked if they want to sign up for one.

Here are some use case scenarios:

🔘Sending emails to different addresses according to user answers

🔘 Showing additional questions when a user chooses a specific answer

🔘 Skipping pages in a multipage survey depending on user answers

🔘 Offering different PDF downloads depending on the user's choice

🔘 Showing a different Thank-You message based on user answers to a quiz

🔘 Password protecting a form 

🔘 Not showing the submit button until the user makes a particular choice

Sign up for JotForm so you can create smart forms.

How do I set up conditions on my forms?

Just follow the "Conditions Wizard" to smarten up your form.


Click SETTINGS in the top menu, then CONDITIONS in the left menu.


Select the condition you need.

What each conditional logic option does


The Show/Hide field shows or hides a field when a specified condition is met. For example, if a user answers "Did you use our product?" with "Yes," then the form will show "How would you rate it?" If a user answers "Did you use our product?" with "No," then the form will hide "How would you rate it?"

Here are some guides related to this function:

🔗 How to Show or Hide Fields Based on a User's Answer

🔗 Hide or Show Multiple Fields at Once

🔗 Show or Hide Multiple Fields at Once Using the Form Collapse Tool


You can create conditional logic rules to perform calculations. Let's say you want to add values from two different fields and have the solution appear in a text box labeled "Total." You can specify the fields to be added and when they should be added.

Check out the guides below to learn more about this conditional logic option:

🔗 How to Insert Text or a Mathematical Calculation into a Field Using Conditional Logic

🔗 How to Manipulate a Text String with Conditions and Calculations


This option allows you to set a form field as REQUIRED or NOT REQUIRED depending on the user's input. You can also ENABLE or DISABLE form fields. This option can be used to conditionally set or change a field's Content Mask. The Content Mask helps users enter data by ensuring a predefined format, such an international phone number, will be followed.

Here are some guides related to this conditional logic option:

🔗 How to Make a Field Required Based on a User's Answer

🔗 How to Set a Content Mask on a Form Field Based on Another Field Input


Allows you to skip or hide pages based on a user’s answers. You can ask additional questions on a new page or simply end the form.

Below is a guide with more details on how to use this feature:

🔗 How to Skip Pages Using Conditional Logic


In this option, you can redirect to a different Thank-You page according to the form submission. Let’s say you list your white papers in a dropdown list and prompt the user to select one. After the form is submitted, the user will be redirected to the white paper they selected.

You can also display a customized Thank-You page according to the form response. If your form is a quiz and the user’s responses for the quiz are not correct, it might be useful to provide the answers or additional resources on the next page.

Here are some guides that might help you with this feature:

🔗 Change Thank-You URL Based on a Condition

🔗 How to Change Thank-You Message Using Conditional Logic

🔗 How to Change Thank-You Message Depending on the Language Used


Send different email alerts based on your users’ responses. Let’s say you have a dropdown question with options like "Sales", "Support", etc. If a user selects "Sales," then a response will be sent to the sales department.

Here's a comprehensive guide on how to set up email alerts with conditions:

🔗 How to Send Email Based on a User's Answer


This screen is a dynamic form. The fields you've added and the choices you have set determine the IF / THEN fields. For example: If the department field is equal to sales, then the notification email goes to

Once you complete a condition, save and test your form. Make sure that the condition is working properly before adding more conditions or your smart form will turn out to be not so smart.

How'd you do? Did you have any difficulties understanding this guide? Please share your thoughts in the comments section below.

Send Comment


See all comments
  • sabatinj

    i want students to sign up for a course, but want it to "fill" and disappear after 10 students. How do I do that?

  • m_vasakou

    I am having trouble creating a specific rule that states that if you try and edit a form through the e-mail link you would be able to change only one specific cell.

  • pwehner

    I'm having trouble creating a rule... I would like to create the following rules

    IF any of the drop downs are equal to billable,
    THEN the box is automatically checked by the form.

    Then say there is a mistake and clicked billable when they didn't mean to and someone needs to correct the form:

    IF all of the drop downs are equal to Non-billable or blank.
    THEN the box is automatically not checked by form.

    Please let me know if I am overlooking how to do this. Thanks!

  • sunshinepeds

    I've tried searching this elsewhere but can't find it. I have 2 conditional logic questions, and they're working fine, but when I go to generate a pdf to print it, those 2 questions are printed at the very bottom of the form...which makes no sense.

    What do I do to keep it where it is on the form and not print separately all the way at the bottom?

  • mario.sibarani

    Hey ,
    I have several question,
    1. How can i set if somebody submit certain answer it will change the next button to submit, and also
    2. How can i remove the back button if case 1 isn't possible.

  • Anacahuita

    I need to create 10,000 or more different conditionals in a single form. Is this possible?
    The Form is for a School and each student is different. They are 10,000 students or more.

  • NS00nCKu

    Am receiving multiple emails, filled up the application form for employment but the one coming are mixed up. Why?




    Yes as a user i am getting mutiple mails after submision

  • NatalieNewton

    I am having trouble getting my conditions to work

  • John

    I need to create a form where users can rapport a period between a certain start date and end date. If the start and end period is for example between may 1 and may 10 then it should not be possible to rapport the period outside that date range. Is that possible by using JotForm?

  • EVS_

    Hi, I am trying to set up a condition where if the date is less than 3 years old of today's date it will show another field if not it will hide the other field. Is there any help. Thanks

  • Tse Tequlia

    I am planning to create a form for customer to submit photo for printing order . Is that possible to request customer to fill up the number of photo they want to print , then the form appears the number of file upload button According to the number of print that answered by the customer + a remark field right next to each uploaded image allow customer to put a remark on each uploaded image?

  • danielnunes1914

    It is possible to hide a fiedl based on a lenght of other field. For exemplo, IF [FIELD A] is shorter than 7 characters hide [Field B]?

  • ucali

    Dear support team,
    I have a form with a drop down menu.
    Boutique = A1, A2, ... A30
    If Boutique are A1 or A2 then email E1 (Already working)

    I would like to add the following but I am not sure the condition will be executed.
    if Boutique is A1 the email E2
    if Boutique A2 the email E2

    If Boutique are A3 or A4 or A5 then email E3

    I would lik to add the following
    if Boutique is A3 the email E4
    if Boutique A4 the email E5
    if Boutique A5 the email E6

    Thank you and kind regards

  • lmtoperationhcid

    Why did the condition logic is always disappear when I close the tab?

  • FirstGenLife

    how to do I run the payment wizard for payments without products, but using conditional logic to add up the cost?

  • michelepersons

    How can I set up a condition that requires the responder to make a selection from either Question 1 or Questions 2. I would like to require them to make a selection in only one of these two questions, but not both.

  • in2science

    Hi there, this is great! I have a form with a drop-down select question (Q1) that has about 60 options. I'd like the option that the person selects to set a value for another question (Q2) that has five options. (So all options in Q1 are mapped to one of five options in Q2.) What would be the easiest way to do this? Is there something easier than creating 60 separate conditionals? Thank you.

  • OutreachlHHWS

    The conditions aren't working properly on my form. Does the sequence of conditions matter? If so, can I reorder them? I need help making this form work...

  • Sinidu


  • Destina

    Cara cek saldo account

  • twentypawsrescue

    would love for you to add, if answered yes then a question pops up, if no lets you continue, Logic questions would really help

  • jbunch359

    I can email my form with condition. However I want to allow them to respond to the email by embedding this url which is a different form. and would like the option for them to just click on it to open.

  • KikideVries

    Our form has to go to multiple departments. I would like an automatic email to be send to the next department after the submission of each little section in our form. Is that possible?

  • onoriode unuajohwofia

    Really appreciate learning more about this jotform.

  • Kloversmith

    I'm trying to get information on a phone that I purchased. This tells me nothing I need to know

  • Bayards

    Just figured it out! Sorry I am new to the software.

  • Bayards

    Hi, I am trying to set up a simple show/hide field using equal to....Then I hit a problem in the values box, as the value I want to select is not in the list! Even though it is showing on the build page? Help. What do I need to do to get it show in the drop down list?

  • bestrada

    Is it possible based on their drop down selection I'd like the second page to generate a row of a google spreadsheet they can scroll through and review.

    Example: If the user selects "option 5" from the drop down on page 1, then on the second page a scroll box would show row 1 & 5 columns A-X, from a google sheet I have in my documents.

    Thanks in advanced!

  • MBizTools

    Is there any way set up a conditional that is based on whether the form is filled out the 1st time or is filled out using the Edit Link? For example, when someone fills out the form the 1st time I want them taken to a special offer page. But if they are just submitting an update at a later time using the Edit Link I do NOT want them going to that offer page and want them redirected to another thank you page. Please advise. Thanks!

  • evermorevideo

    Hi, it will not let me select the "IF" field I need to. There's only 1 option that becomes highlighted, out of 7 elements. Are there only specific form elements that have the ability to have conditions?

  • Vinamra Parihar

    Does this allow for conditional questions? For example, if you answer “Yes” on a question, then another set of questions pop up.



  • MarcosPereiraMarcos

    não consegui instalar o formulário na minha fan page , o face book não aceitou alguém pode me ajudar ??

  • mlewis_COWR

    How do I set a condition for a dropdown box? I want an employee to select a department, which pulls up the divisions associated with the department

    Department -Dropdown box
    Administrative Services
    Community Development
    Police Department

    The employee would select a department and then the Division drop-down box would appear. So if some selected Administrative Services they would have the HR, Finance, IT to select from; if they select Police Department they would have Records, Investigations, Patrol to select from extra.

    Thank you.

  • Ssennyondo

    I want to on how to use

  • KimReiter

    I can't find the answer to my question among your FAQs. I created a JotForm ( that contains several questions (12A - 12G) in which I want the user to be able to "Mark All That Apply". When I preview the form and click on "Fill Form" button, ALL of the options for these questions are checked and I cannot uncheck them. How do I fix this problem?

  • clivesw

    A very helpful guide. Really useful as it helps in areas you wouldn.t necessarily think of using.

  • Adilson Aguiar

    Quero saber se a versao de logica é gratuita?

  • happy mothers day mum

    I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog! happy mothers day mum

  • Fulvio

    My problem is to set different prices connected to the type of user you are. So: you are a member ? 5 €.. You are an Active Member €10. You are a guest, ok for you it’s for free
    When you select you status, it has to appear the right price connected to the payment system .
    I followed exactly you instructions but they probably work differently for the payment field.
    How can I do?
    In one form you can only have 1 payment field, so I created three levels in prices field but how can I create the system to show the right price for the right member ?

  • bfleck

    Is there a way you can make the form say hello to the person after they enter their name? Ex: if they enter John Smith, the form replies hello John Smith.

  • DarrellDolan

    Nothing for me no money getting

  • psd to responsive wordpress

    this blog was really great, never seen a great blog like this before. i think im gonna share this to my friends..

  • sdaeditor

    How would I make all fields compulsory to be completed before users are able to submit the form?
    Thank you.

  • alfredopb

    Hi, could you tell me if the user could receive copy of the form one time he finish to complete?

    All the best and thanks, Alfredo

  • chaboyaptsa

    I do not have Skip as an option condition. Why?

  • lashawnda Jones


  • Danil1234