Conditional Logic for Online Forms

October 21, 2022

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.


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.


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.


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.


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.


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

Send different email alerts based on your users’ responses.


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.

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:

Contact Jotform Support:

Send Comment:

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


  • toure Alhadar Ahmed
  • Merry Smith
  • Akbar Antony
  • Tatenda Mugwagwa
  • new gospel
  • José Luiz Dias
  • Debra Langa
  • ECTIpakistan
  • Daiana Averbuj
  • Larissa
  • Yakup bayrakci
  • Gbado Riçh
  • Addo
  • Angelina Adomako
  • jasvinder singh ghateaura
  • Antonio Cantoro
  • Ckersten
  • Shivonna Hall
  • CIA Ramil
  • Fofana Youssouf
  • Bryan P. Leeds
  • Tiffany Wayne
  • Anu
  • SCP Surveys
  • Jefferey
  • Alberto Suárez
  • Divine Musenena
  • pranali kakad
  • bonnie malchow
  • Admasu Agize
  • Raj kumar yadav Raj yadav
  • Emmanuel
  • Haftneh Tesfay
  • CPOzarks
  • creativebitsgraphics
  • Jacqueline Stone
  • fabianofelipe50
  • sunilkumar77
  • sunilkumar77
  • wattmichael131
  • lawrencecrew
  • clyd7676
  • ERTHcovid19
  • Barbara Walters
  • RuralMedia
  • Xavier
  • Galooli_Nigeria
  • Galooli_Nigeria
  • akshay4x
  • Rj sagor
  • Jason_Riggs
  • Reed_Matthew
  • Carlo_Napolitano
  • boxbanbridge
  • bktab2020
  • b.gerard
  • SmartHealthcare
  • williegoal9188
  • sebihayaman2
  • MYBD
  • elightbody
  • Sunny
  • mcmanuslawyers
  • haistormgo
  • ikhaldoune403
  • mosaicenviro
  • FPCBECO3th
  • shaunsharples1980
  • physiotherapy.soahs
  • Chandra Kumar
  • sara_chejanovich
  • mjcaldwell
  • monicadennis1820
  • innovationbuildinganddesign
  • keihiko
  • Duran_Jocelyn
  • sabatinj
  • m_vasakou
  • pwehner
  • sunshinepeds
  • mario.sibarani
  • Anacahuita
  • NS00nCKu
  • NatalieNewton
  • John
  • EVS_
  • Tse Tequlia
  • danielnunes1914
  • ucali
  • lmtoperationhcid
  • FirstGenLife
  • michelepersons
  • in2science
  • OutreachlHHWS
  • Sinidu
  • Destina
  • twentypawsrescue
  • jbunch359
  • KikideVries
  • onoriode unuajohwofia
  • Kloversmith
  • Bayards
  • Bayards
  • bestrada
  • MBizTools
  • evermorevideo
  • Vinamra Parihar
  • MarcosPereiraMarcos
  • mlewis_COWR
  • Ssennyondo
  • KimReiter
  • clivesw
  • Adilson Aguiar
  • happy mothers day mum
  • Fulvio
  • Kris Cote
  • bfleck
  • DarrellDolan
  • ChelmsfordRelay
  • psd to responsive wordpress
  • sdaeditor
  • alfredopb
  • chaboyaptsa
  • lashawnda Jones
  • Danil1234
  • WiltonMill
  • WiltonMill
  • ashutoshjaihind
  • jlmerkey
  • sheila marie cenabre paradela
  • mohamed
  • MarilynLitt
  • hriviereplatt
  • elgabriello
  • JR
  • mattosborne
  • ab
  • alicewolke
  • att33
  • Gwendolyn Mcveigh
  • Nmead
  • SCMarket
  • kranai
  • ClintonvilleQuest
  • GrannyGooGoo
  • rhherren
  • jgoodmanFORSYTHES
  • CathyRuhl
  • hayancey
  • insurancewhisper
  • trademarque
  • en32
  • asgashwin
  • nlpmarin
  • mcmendelsohn