Conditional Logic for Online Forms

Last Update: 

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 “Conditional Logic Wizard” to smarten up your form.

Access the Conditional Logic Wizard

Go to the Settings tab in the Form Builder, then click Conditions on the left.

form-builder-conditions-min

Select the condition you need.

What Each Conditional Logic Option Does

Show/Hide Field

The Show/Hide Field shows or hides a field when the specified condition is met.

show-hide-field-option-min

For example, if a user answers Did you use our product? with “Yes”, then the form will show How would you rate it?.

Here are some guides related to this function:

Update/Calculate Field

You can create conditional logic rules to perform calculations.

update-calculate-field-option-min

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:

Enable/Require Field

This option allows you to set a form field as required or not required depending on the user’s input.

enable-require-field-option-min

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 as an international phone number, will be followed.

Here are some guides related to this conditional logic option:

Skip To/Hide a Page

It is also called skip logic. It allows you to skip or hide pages based on a user’s answers.

skip-to-hide-page-option-min

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.

change-thank-you-page-option-min

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 E-mail Recipient

Send different email alerts based on your users’ responses.

change-email-recipient-min

Let’s say you have a dropdown field with options like “Sales”, “Support”, etc. – you can set it that if the user selects “Sales”, an email alert 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

Setting up a Condition

The next screen after selecting a Conditional Logic option is a dynamic form. The fields you’ve added and the choices you have set determine the if-then statement.

Conditional Logic for Online Forms Image-1
Conditional Logic for Online Forms Image-2
Conditional Logic for Online Forms Image-3

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.

Was this guide helpful?
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:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments:

  • singineer - Profile picture
  • LudingtonFFF - Profile picture
  • Umar Usman  - Profile picture
  • goalken highlight - Profile picture
  • Tatenda Mugwagwa - Profile picture
  • new gospel - Profile picture
  • José Luiz Dias - Profile picture
  • Debra Langa - Profile picture
  • ECTIpakistan - Profile picture
  • Daiana Averbuj - Profile picture
  • Larissa - Profile picture
  • Yakup bayrakci - Profile picture
  • Gbado Riçh - Profile picture
  • Addo  - Profile picture
  • Angelina Adomako - Profile picture
  • jasvinder singh ghateaura - Profile picture
  • Antonio Cantoro - Profile picture
  • Ckersten  - Profile picture
  • Shivonna Hall - Profile picture
  • CIA Ramil - Profile picture
  • Fofana Youssouf - Profile picture
  • Bryan P. Leeds - Profile picture
  • Tiffany Wayne - Profile picture
  • Anu - Profile picture
  • SCP Surveys - Profile picture
  • Jefferey - Profile picture
  • Alberto Suárez - Profile picture
  • Divine Musenena - Profile picture
  • pranali kakad - Profile picture
  • bonnie malchow - Profile picture
  • Admasu Agize - Profile picture
  • Raj kumar yadav Raj yadav - Profile picture
  • Emmanuel - Profile picture
  • JOHNSON KUNJUKUNJU KOTTOOR - Profile picture
  • Haftneh Tesfay - Profile picture
  • CPOzarks - Profile picture
  • creativebitsgraphics - Profile picture
  • Jacqueline Stone - Profile picture
  • fabianofelipe50 - Profile picture
  • sunilkumar77 - Profile picture
  • sunilkumar77 - Profile picture
  • wattmichael131 - Profile picture
  • lawrencecrew - Profile picture
  • clyd7676 - Profile picture
  • ERTHcovid19 - Profile picture
  • Barbara Walters - Profile picture
  • RuralMedia - Profile picture
  • Xavier - Profile picture
  • Galooli_Nigeria - Profile picture
  • Galooli_Nigeria - Profile picture
  • akshay4x - Profile picture
  • Rj sagor - Profile picture
  • Jason_Riggs - Profile picture
  • knraj.email - Profile picture
  • Reed_Matthew - Profile picture
  • Carlo_Napolitano - Profile picture
  • boxbanbridge - Profile picture
  • bktab2020 - Profile picture
  • b.gerard - Profile picture
  • SmartHealthcare - Profile picture
  • williegoal9188 - Profile picture
  • sebihayaman2 - Profile picture
  • MYBD - Profile picture
  • Sunny - Profile picture
  • mcmanuslawyers - Profile picture
  • haistormgo - Profile picture
  • OSITA RICH - Profile picture
  • ikhaldoune403 - Profile picture
  • mosaicenviro - Profile picture
  • FPCBECO3th - Profile picture
  • shaunsharples1980 - Profile picture
  • physiotherapy.soahs - Profile picture
  • Chandra Kumar - Profile picture
  • sara_chejanovich - Profile picture
  • RICHARD OBESO - Profile picture
  • mjcaldwell - Profile picture
  • monicadennis1820 - Profile picture
  • innovationbuildinganddesign - Profile picture
  • keihiko - Profile picture
  • Duran_Jocelyn - Profile picture
  • sabatinj - Profile picture
  • m_vasakou - Profile picture
  • pwehner - Profile picture
  • sunshinepeds - Profile picture
  • mario.sibarani - Profile picture
  • Anacahuita - Profile picture
  • NS00nCKu - Profile picture
  • BURKLEY JAMES - Profile picture
  • noida.it - Profile picture
  • NatalieNewton - Profile picture
  • John - Profile picture
  • EVS_ - Profile picture
  • Tse Tequlia - Profile picture
  • danielnunes1914 - Profile picture
  • ucali - Profile picture
  • lmtoperationhcid - Profile picture
  • FirstGenLife - Profile picture
  • michelepersons - Profile picture
  • in2science - Profile picture
  • OutreachlHHWS - Profile picture
  • Sinidu  - Profile picture
  • Destina - Profile picture
  • twentypawsrescue - Profile picture
  • jbunch359 - Profile picture
  • KikideVries - Profile picture
  • onoriode unuajohwofia  - Profile picture
  • Kloversmith - Profile picture
  • Bayards - Profile picture
  • Bayards - Profile picture
  • bestrada - Profile picture
  • MBizTools - Profile picture
  • Vinamra Parihar - Profile picture
  • ABDUL GHAFOR OMAR - Profile picture
  • MarcosPereiraMarcos - Profile picture
  • mlewis_COWR - Profile picture
  • Ssennyondo - Profile picture
  • KimReiter - Profile picture
  • clivesw - Profile picture
  • Adilson Aguiar - Profile picture
  • happy mothers day mum - Profile picture
  • Fulvio - Profile picture
  • Kris Cote - Profile picture
  • bfleck - Profile picture
  • DarrellDolan - Profile picture
  • ChelmsfordRelay - Profile picture
  • psd to responsive wordpress - Profile picture
  • sdaeditor - Profile picture
  • alfredopb - Profile picture
  • chaboyaptsa - Profile picture
  • lashawnda Jones - Profile picture
  • Danil1234 - Profile picture
  • CONTOMS - Profile picture
  • WiltonMill - Profile picture
  • WiltonMill - Profile picture
  • ashutoshjaihind - Profile picture
  • jlmerkey - Profile picture
  • sheila marie cenabre paradela - Profile picture
  • mohamed - Profile picture
  • MarilynLitt - Profile picture
  • hriviereplatt - Profile picture
  • elgabriello - Profile picture
  • JR - Profile picture
  • mattosborne - Profile picture
  • ab - Profile picture
  • att33 - Profile picture
  • Gwendolyn Mcveigh - Profile picture
  • Nmead - Profile picture
  • SCMarket - Profile picture
  • kranai - Profile picture
  • ClintonvilleQuest - Profile picture
  • GrannyGooGoo - Profile picture
  • rhherren - Profile picture
  • jgoodmanFORSYTHES - Profile picture
  • CathyRuhl - Profile picture
  • hayancey - Profile picture
  • insurancewhisper - Profile picture
  • trademarque - Profile picture
  • en32 - Profile picture
  • asgashwin - Profile picture
  • nlpmarin - Profile picture
  • mcmendelsohn - Profile picture
  • jkirschner - Profile picture
  • munir1992 - Profile picture
  • salrisser - Profile picture
  • shabir allie - Profile picture
  • shabir allie - Profile picture
  • erikroberts - Profile picture
  • simonebrennan - Profile picture
  • Anjum - Profile picture
  • alan - Profile picture
  • Robert Helvie - Profile picture
  • AndreaHillsamer - Profile picture
  • sosincfloydva - Profile picture
  • julienmery - Profile picture
  • backjan72 - Profile picture
  • erinbjorn - Profile picture
  • Pranav - Profile picture
  • Original7_Inc - Profile picture
  • MelissaH - Profile picture
  • ChallengesWW - Profile picture
  • ChallengesWW - Profile picture
  • Uma S - Profile picture
  • GErickson - Profile picture
  • bluesteelfootball - Profile picture
  • Mick Davies - Profile picture
  • formsonline - Profile picture
  • ABATraining - Profile picture
  • TheDGPA - Profile picture
  • drstewart - Profile picture
  • rhallga - Profile picture
  • jeweloh - Profile picture
  • Althea Dyce - Profile picture
  • allens - Profile picture
  • vikas - Profile picture
  • Bill Lincoln - Profile picture
  • sbrand - Profile picture
  • webtodesigns - Profile picture
  • alaming - Profile picture
  • guest_30133310276036 - Profile picture
  • dringram - Profile picture
  • nhankwitz - Profile picture
  • LBCTruth - Profile picture
  • sharebids - Profile picture
  • sharebids - Profile picture
  • Ankush - Profile picture
  • guppyd - Profile picture
  • cscnats - Profile picture
  • Suyog Bhobe - Profile picture
  • Mo Nabil - Profile picture
  • coralsprings954 - Profile picture
  • halh - Profile picture
  • Mobile2012 - Profile picture
  • lunarplaytime - Profile picture
  • geneseepharmacists - Profile picture
  • geneseepharmacists - Profile picture
  • shay3624 - Profile picture
  • Laura Bowman - Profile picture
  • Kevin Pierce - Profile picture
  • kl.vanw - Profile picture
  • darnold953 - Profile picture
  • sander_j4s - Profile picture
  • victorataide - Profile picture
  • 405media - Profile picture
  • cychorus - Profile picture
  • wpdmedia - Profile picture
  • tampopo - Profile picture
  • internetweek - Profile picture
  • TGianmarcoT - Profile picture
  • CesarGuimaraes - Profile picture
  • region1convention - Profile picture
  • Verhoop - Profile picture
  • murriza - Profile picture
  • felipe_sasa - Profile picture
  • mskrock - Profile picture
  • diaconaalsteunpunt - Profile picture
  • chiseled_images - Profile picture
  • aytekin - Profile picture
  • CTSemAdmis - Profile picture
  • robertgo - Profile picture
  • DJ - Profile picture
  • Adrian - Profile picture
  • DarkUFO - Profile picture
  • Jonathan Hinchliffe - Profile picture
  • marcflight - Profile picture
  • jryan - Profile picture
  • anniescadden - Profile picture
  • PGPacific - Profile picture
  • sunilv - Profile picture
  • lllll - Profile picture
  • bankruptcynews - Profile picture
  • 3DMetrix - Profile picture
  • hillsley - Profile picture
  • Marsha - Profile picture
  • atrw - Profile picture
  • fazilat.ma - Profile picture
  • Manstud - Profile picture
  • Tim Genster - Profile picture
  • JotFormSupport - Profile picture
  • txconejo - Profile picture
  • Lazersam - Profile picture
  • webadmin - Profile picture
  • Nixor - Profile picture
  • nanstondental - Profile picture
  • davest - Profile picture
  • ResumeEvolution - Profile picture
  • MarceloTorres - Profile picture
  • JotformSupport - Profile picture
  • jiwalters - Profile picture
  • Hershel Wolf - Profile picture
  • Esther - Profile picture
  • johndoewho - Profile picture