Conditional Logic for Online Forms

February 14, 2024

What’s a Smart Form?

In the most basic sense, smart forms are dynamic. Instead of static, smart forms can change the fields and questions based on how a user interacts with your form using conditional logic. If you need to segment questions to different types of users or perform complex calculations, smart forms can get the job done.

What is conditional logic?

Conditional logic uses IF/THEN checks to determine an outcome. The IF statement is the condition or trigger while THEN is the action to perform or outcome. Conditional logic has since then evolved into a framework used to automate workflows.

When is conditional logic needed most?

Conditional logic is useful when you need to perform tasks conditionally — like performing calculations, sending a custom email, showing a message, or toggling certain form elements’ visibility — based on how a form filler answers the questions on your form.

Why is conditional logic important?

Conditional logic helps cut out user error by automating tasks. Here are some scenarios where conditional logic could come in handy:

  • 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 to add conditional logic to your form

To create conditional logic

  1. In the Form Builder, go to Settings at the top.
  2. Select Conditions on the left.
  3. Choose and configure your desired conditional logic type.
Steps to access conditions in Jotform Form Builder

Here’s what each conditional logic type can do:

Once you’re done, save and test your interactive form. Ensure that the condition is working properly before adding more conditions.

Academy Logo

Introduction to Form Building

Adding Conditional Logic Elements

Go to course :Adding Conditional Logic Elements
lesson-2 - image
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:

  • Marco Tsang - Profile picture
  • Dee - Profile picture
  • Christopher Smith  - Profile picture
  • Trisha - Profile picture
  • praveen b m  - Profile picture
  • Nonjabulo Faithfull Moloi  - Profile picture
  • 各務 康貴 - Profile picture
  • Amadeus Martin - Profile picture
  • modMD Health - Profile picture
  • OMALE  ALHASSAN  HASSAN - Profile picture
  • Berlincia Easterling  - Profile picture
  • Ed - Profile picture
  • Kathryn Wohlpart - Profile picture
  • Nguyễn Thị Huyền My - Profile picture
  • Scott Bond - Profile picture
  • 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
  • ECTIpakistan - Profile picture
  • Daiana Averbuj - Profile picture
  • Larissa - 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
  • Raj kumar yadav Raj yadav - Profile picture
  • JOHNSON KUNJUKUNJU KOTTOOR - Profile picture
  • Haftneh Tesfay - Profile picture
  • CPOzarks - Profile picture
  • creativebitsgraphics - Profile picture
  • Jacqueline Stone - 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
  • elightbody - 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
  • 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
  • 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
  • evermorevideo - Profile picture
  • Vinamra Parihar - 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
  • ChelmsfordRelay - Profile picture
  • sdaeditor - Profile picture
  • alfredopb - Profile picture
  • chaboyaptsa - Profile picture
  • CONTOMS - Profile picture
  • WiltonMill - Profile picture
  • ashutoshjaihind - Profile picture
  • jlmerkey - Profile picture
  • sheila marie cenabre paradela - Profile picture
  • MarilynLitt - Profile picture
  • hriviereplatt - Profile picture
  • elgabriello - Profile picture
  • JR - Profile picture
  • mattosborne - Profile picture
  • ab - Profile picture
  • alicewolke - 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
  • 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