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.

Youtube Embed Poster: QGNHaaH_iZo

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.

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:

  • Delight Medical Center - Profile picture
  • Alisa Britt Perlet - Profile picture
  • Sarah French - Profile picture
  • Debele - Profile picture
  • FAUSTIN DUNIA NDABIRE - Profile picture
  • Brown - Profile picture
  • 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