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.

1. ACCESS THE CONDITIONS WIZARD

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

2. SELECT A CONDITIONAL LOGIC OPTION

Select the condition you need.

What each conditional logic option does

SHOW / HIDE FIELD

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

UPDATE / CALCULATE FIELD

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

ENABLE / REQUIRE FIELD

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

SKIP TO / HIDE A PAGE

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

CHANGE "THANK-YOU" PAGE

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

CHANGE EMAIL RECIPIENT

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

3. SETTING UP A CONDITION

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 sales@sales.com.

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: https://www.jotform.com/contact/

Send Comment

157 Comments...

See all comments
  • 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

    Hello,

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

  • SmartHealthcare

    hi

    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

    Hi

    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

    Hello,
    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.

  • OSITA RICH

    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.

    Thanks

  • 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

    Hi,

    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

    Hi,
    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

    Hello

    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?

    Regards
    Sara

  • RICHARD OBESO

    Hi,

    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?

    Thanks!

  • 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 https://essaysleader.com/

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

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

  • BURKLEY JAMES

    I AM A USED CAR DEALER AND I SET UP A CREDIT APPLICATION ON YOUR APP. I WAS TRYING TO FIGURE OUT HOW TO MAKE IT POSSIBLE FOR CUSTOMERS TO DOWNLOAD A PICTURE OF THEIR DRIVERS LICENSE

  • noida.it

    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

    Hi,
    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.
    thanks

  • 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

    Hi,
    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...
    Cara

  • Sinidu

    Ineterested

  • 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.
    https://form.jotform.com/83358393140155

  • KikideVries

    Hi,
    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?