Conditional Logic

Free

Show, hide or disable parts of a form, and gate its deliveries, with conditions checked in the browser and again on the server.

Free on unlimited sites, GPLv3

What Conditional Logic connects, and what travels between them.

Answers so far

Conditions

What is shown

Version
1.0.0
WordPress
6.5+
PHP
7.4+
Tested up to
7.1
Licence
GPLv3

What it does

Sections that appear when they are relevant

Ask about a delivery address only once someone has said they want delivery. The form stays short for everyone who does not need the long version.

Deliveries you can gate

Run the CRM delivery only for enquiries above a certain size, or skip the mailing list unless the consent box is ticked.

Checked twice, for the same reason as validation

Conditions run in the browser so the form feels immediate, and again on the server so a hidden field cannot be submitted by editing the page.

Getting it working

  1. 01

    Select a block

    Choose the field or section you want to control, in the block editor.

  2. 02

    Write the condition

    Pick the field it depends on, the comparison, and the value.

  3. 03

    Choose the effect

    Show, hide or disable, and decide whether hidden answers are still submitted.

Every setting

What you can configure, and where it lives. Site settings apply everywhere; the rest are set on the form itself.

Setting Scope Notes
Subject Per rule The field the condition reads.
Comparison Per rule Equals, contains, greater than and so on.
Effect Per rule Show, hide or disable.
Delivery gate Per delivery Whether this delivery runs at all.

Questions

Are hidden fields still submitted?

That is yours to choose per rule. The default is not to submit them, because a field someone never saw is rarely an answer they gave.

Can one field depend on several others?

Yes. Combine conditions with and / or.

Does it work across steps in a multi-step form?

Yes. A condition on step three can read an answer from step one.

What happens to validation on a hidden required field?

It is not enforced while the field is hidden, so a required question someone was never asked cannot block their submission.

Start using Conditional Logic

Free on unlimited sites, GPLv3