Build Dynamic Forms in WordPress with Conditional Logic

Create dynamic forms that respond to how people interact with your fields.

  • Dynamic form behavior Change your form based on how a user interacts with it.
  • Show or hide content Display fields or text when specific conditions are met.
  • Trigger form actions Run actions such as email or save progress from user interactions.
  • Respond to field values Use values like slider percentages, progress, or color hue in logic.
  • JavaScript event triggers Fire JavaScript when a field is clicked or changed.
  • Debug console logging View conditional logic activity in the Log tab.

Conditional Logic lets you create dynamic forms that change according to the way a user interacts with your form.

In WordPress, you can use conditional logic to show a field or block of text when a checkbox is checked, display a warning when a range slider is greater than 50%, or reveal extra fields based on user input.

It can also trigger actions such as saving form progress when a Next tab button is clicked, firing an email action when a button is clicked, pushing partial completions to Constant Contact or MailChimp, or running JavaScript when a field is clicked or changed.

  • Show relevant fields

    Reveal particular fields when a checkbox is checked so the form adapts to each response.

  • Display helpful messages

    Show warnings or status messages when values meet conditions, such as a slider going above 50%.

  • Save progress automatically

    Automatically save form progress when a Next tab button is clicked.

  • Handle shipping details

    Show shipping address fields when a Use separate shipping address checkbox is checked.

  • React to validation state

    Make the form turn green when all required fields are complete and the form validates.

  • Track progress milestones

    Show an Almost there! message when a progress bar is equal to or greater than 75%.

  • Trigger connected actions

    Fire an email action from a button click or push partial completions to Constant Contact or MailChimp.

  • Monitor logic activity

    The debug console logs all conditional logic activity in the Log tab.

Real Customer Reviews

Trusted by thousands of WordPress professionals.

  • Everything I need, I have tried many form plugins and this one is the best in my 15 years online.

    wadsys
  • WS Form PRO is simply the best form builder on the planet. Big shout out to WS Form for a great product and fantastic support.

    Ian Dunlop
  • Everyone was raving about WS Form, and they were right. It’s awesome!

    touchdowntech

Frequently Asked Questions

What is Conditional Logic in WS Form?

Conditional Logic provides a way to create dynamic forms that change according to the way a user interacts with your form.

What can Conditional Logic do in a form?

It can show fields or text, display warnings, save progress, fire email actions, push partial completions to Constant Contact or MailChimp, and fire JavaScript when a field is clicked or changed.

Can Conditional Logic show or hide fields?

Yes. One example is showing a particular field or block of text if a checkbox field is checked.

Can Conditional Logic respond to field values?

Yes. Examples include showing a warning if a range slider is greater than 50%, showing additional fields if the hue of a color field exceeds a certain value, or displaying a message when a progress bar reaches 75% or more.

How do I set up conditional logic in WS Form?

Click the Conditional Logic icon at the top of the layout editor. The Conditional Logic sidebar will open. Then click the Add icon. You can also watch the demo video or visit the Conditional Logic guide.

Is there a way to debug Conditional Logic?

Yes. The debug console logs all conditional logic activity in the Log tab.