JotForm User Guide / Advanced Features /

Smart Forms: Conditional Logic for Online Forms

Smart 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 using conditional logic. 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


It is also called skip logic. It 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 interactive 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.

Contact Support:
Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:
Contact JotForm Support:

Send Comment


See all comments
  • Haftneh Tesfay

    I Like such like this forum, you send me all the detail condition of the forum and i thanks you very much, And I can understand this idea briefly through time to time and you may also support me what i confused ideas.

  • CPOzarks

    If my conditional logic hides required fields, will that prevent users from submitting? Or does hiding the field automatically make those fields not required?

  • creativebitsgraphics

    H0w d0 i sh0w the breakd0wn 0f cust0mers T0taI 0rders and inf0s?

  • Jacqueline Stone

    I have conditional logic throughout the form and it seems to be setup correctly, but when I preview the form it only shows the header of the second page. It should go from first page to second page to thank you page. I have conditional logic setup that uses information from page 1 to show certain fields in page 2. Is that why it's breaking? Can you not have fields on the second page be based off of what is chosen on the previous page?

  • fabianofelipe50

    esse site e muito e imteresante

  • sunilkumar77

    I want to show my form some fields on Monday To Wednesday but not on Thursday to Sunday. How I can do this?

  • sunilkumar77

    How I can hide the particular field on a specific day?

  • wattmichael131

    Is it possible to have a date picker (start, end, Airbnb style )
    that on the date picked and submitted it'll block out those dates as booked?

  • lawrencecrew

    For the 'CHANGE EMAIL RECIPIENT' option, how many different variations can you have on the Bronze package?

  • clyd7676

    I was searching for it online and I am glad I have found your post.

  • ERTHcovid19

    Hi There, I'm trying to have it hide the next question in a questionnaire depending on the value that users select from a drop down in a grid. That grid has first a column of dropdowns and then to columns of text fields. When I say IF "that question" Contains Value "a specific value from the drop down list column (first column in the grid)" it doesn't do anything? But if I just type that value in next columns text box field, then it works? How do I get the value from the drop down in the grid be used in the condition?

    Thanks in advance.

  • Barbara Walters

    I asked to be UNSUBSCRIBED and I'm still getting your e-mails. What do I have to do to stop receiving them?

  • RuralMedia

    Hi need to get several people (4) to sign a document but I can't work out how to set up the email logic ???

  • Xavier


    I have a question regarding the amount of rules that can be applied on one field.
    I have 1167 postcodes that would give a "positive" answer and then display the next field, otherwise I would like to display a message saying "you're not eligible".

    Could Jotform do so?

    Thank you very much for your answers.

    Kind regards,


  • Galooli_Nigeria

    Hello Please, I am from galooli Nigeria and I Cannot access jotform tools and widgets from Nigeria. We are using a Paid service and will require you help resolve .

  • Galooli_Nigeria

    We are finding it difficult to access jotform here in Nigeria
    We are using a paid service of jotform at Galooli Nigeria

  • akshay4x

    easy ways!

  • Rj sagor

    In a multiple-choice element, is there a way to force a selection? Not a default selection, but if one forces another selection as well?

  • Jason_Riggs

    In a multiple choice element, is there a way to force a selection? Not a default selection, but if one choice is made, it automatically forces another selection as well?

    Option A
    Option B
    Option C

    If Option C is chosen, Option A is auto-chosen as well?


    Is there any opinions to convert lower case to upper case convertion in text input

  • Reed_Matthew

    Is there an option where if a person signs the document, then they are required to type in the email address of the next required signature? For example, if a student signs a doc then they are required to type in their parent's email. Once the parent has signed then it will automatically send back to me as the teacher?

  • Carlo_Napolitano

    Hi There, I am creating configureable lists with 2 number fields . I want to calculate a single column for each add. Everytime I do a calculation it add both fields. How can I get this to calculate the single field?

  • boxbanbridge

    Is it possible to add a condition to the barcode scanner that says, if value not equal to x then do not allow submit ?

  • bktab2020

    I need to add Save and Continue buttons to my forms.

    Is there an option for the form to auto-save as it's being completed?

  • b.gerard


    I have built several conditional logic but results based on the conditions are not correct. Do you have more informations or solutions ?

  • SmartHealthcare


    I'm creating conditional logic;

    1) IF Business Type IS FILLED SEND Autoresponder EMAIL TO {email}
    2) IF Business Type IS EQUAL TO "A Shop" SEND Notification EMAIL TO Cos@***.com
    3) IF Business Type IS EQUAL TO "B Shop" SEND Notification EMAIL TO Ben@***.com

    As a result of the Testing, I got the each Email, Email "cos@***.com" and "ben@***.com".
    but I can not any Email through the Autoresponder.
    plz, could you check it?

  • williegoal9188


    I'm creating a 20 multiple choices questionnaire.
    How do I configure the default answer such that when learner choose the wrong answer, the right answer will shown.
    Thereafter, showing the overall score shown for each leaner.

    Much thanks

  • sebihayaman2

    Ben form oluşturamıyorum yardımcı olur musunuz

  • MYBD

    The condition only allow equal or not equal. What if I require the condition to be greater than or less than?

  • elightbody

    I am trying to create a form for an upcoming trip that we are organizing. When I get to the bottom of the form and hit "submit", it jumps back up to a previous page. I'm REALLY new to this so I'm not quite sure what to do. Any suggestions? I appreciate any help I can get!!

  • Sunny

    Can we create a conditional form and export to a fillable pdf?

  • mcmanuslawyers

    Hi Jotform. I am having issues with conditional logic. I have set an answer to show further questions when answered in a certain way, but the questions will not hide when answered in another way. Even though i have set it to hide! Can you please help? Thank you.

  • haistormgo

    I'm a signature gatherer for the attorney general in California and Congress legislator petitioner for statewide memorandom for all 50 states. Each petition form usually hold about 10 signature slots for the individual city or county. Is it possible for jotform to shoot out pdf form exactly like the paper form and the client can electronic sign the petition( ex. In slot 1 where print name and signature , as well as voter address. After a complete signature with print name and voter address. The form return back to me. And I would categorized the completed signatured , combine it on 1 sheet and print it on 1 sheet. Just like if I got their signature in person. How much would this system cost me.


    Good Day,

    I want to find out if it is possible to integrate payment into a conditional logic form which shown up before the result of the form is shown.


  • ikhaldoune403

    Merci de ma voire orienter plus tard je vais vous contacter pour inscrire a votre formulaires intelligents

  • mosaicenviro

    I have several conditions set up on my form - they should be working ...but none of them are. They are all show/hide conditions.

    Help please

  • FPCBECO3th


    I am setting up a jotform where a core group of 5 people will always need to receive a notification that a form was submitted which I believe I should set up under EMAILS under the SETTINGS tab.

    In addition to that group of 5 people, there may be occasions when other departments, such at tech and communications, may need to receive notifications only if their services are needed.

    My question is, do I set up notifications for the core 5 people under EMAILS under the SETTINGS tab, then in order for the other departments to receive notifications when needed, set up under the CONDITIONS tab a CONDITIONAL LOGIC so the notification emails goes their email? If so, do I need to put in that departments' email only or do I need to put in the core 5 people AND the email of that department?

  • shaunsharples1980

    I am creating a driving theory practice test so require the correct answer to highlight if not answered correctly before moving to the next question.
    I would like the thank you page to give the results of this test so say they got 80 out of 100 it would be 80% and i would like it to give a pass or fail based on this percentage.
    Is this possible?
    Also is it possible to email the inputter the results after the test?

    Thank you

  • physiotherapy.soahs

    Hi Jotform Team
    I wanted to know if there is any conditional logic to prepopulate the dropdown2 when items in dropdown1 is chosen? eg. as in when i chose name of person in dropdown1, is there a conditional logic to prepopulate email id in dropdown2? Please help.

  • Chandra Kumar

    Can I use conditional logic to use a form field answer to open different Form / Forms ?

  • sara_chejanovich


    I am creating a form based on a PDF that has around 67 pages. Is there any limitation in the number of conditions or in the number of pages that the form can have?




    Does the submission of response from the form can be linked to google sheet?

    I just wanted to link the response from the form to the google sheet or link the data from google sheet to the form. Is it possible?


  • mjcaldwell

    I have a form with a multiple choice question that could be answered with multiple different combinations of answers. I need to use conditional formatting on it, but if/then isn't enough. The option that I am looking for is "unless" and I can't see a way to make that happen. If they pick "Option C", I want the form to skip the next two questions. If they pick "Option A" or "Option B" by themselves or in any combination with "Option C" I want the next two questions to show up. Any idea how to make that happen? I have already tried the "Is not equal to" option to see if that would work and it appears to give basically the same result as the "Is equal to" option when applied to the other choice.

  • monicadennis1820

    An interesting forum where you can find a lot of online friends and use popular tips. If you are interested in the topics covered here you can find more here

  • innovationbuildinganddesign

    I am designing an online checklist with 100's of questions. The use will choose if something is:

    (1) Satisfactory
    (2) Unsatifactory
    (3) N/A

    If the result is Unsatisfactory the user is invited to write a comment to explain why and take a photo.

    I understand how to set up the Conditional Logic to unhide the comment box and photo. What I am wondering is the most efficient way to have this work for multiple questions. Is is possible to set up a comment box and photo as a different section and then have the logic loop to that section only??

  • keihiko

    I have a form that previously worked fine with the conditional logic i input, but between disabling the form and re-enabling it, it now seems to not be working correctly even though none of the conditional logic has changed.

    I had it set to hide an address field if a shippable item type was not selected, and to show if it was. however it's showing the address field for non-shippable products (I do artwork commissions and only ship certain types of physical artwork, the rest are digital only)

    It's frustrating because I don't need to know or hold someone's address for non-shippable items.

  • Duran_Jocelyn

    I am trying to add a CALCULATE FIELD condition... i would like for the number of days between two dates to be calculated and then multiplied by a certain dollar amount (or number). And the total would then appear in an unchangeable field. Please let me know what to enter to have this done.

    I start with
    IF age group IS EQUAL TO 31-40
    DO Calculate a Field's Value
    DATE (End Date) - DATE (Start Date) * 1.08
    SUMMARY Total Cost

  • 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!