Forms with conditional logic, rule by rule

Forms with conditional logic are ordinary forms with rules attached to fields, and there are only four kinds of rule: show this field when that answer is given, hide it otherwise, require it only when it is shown, and route the entry by the answer. Everything a quote form, an intake form or a registration form does with logic is one of those four, and a form that is hard to understand is one where the four have been mixed. This page takes each rule in turn with the form it belongs on, then puts a figure on what the rules save with the request a quote form sheet, which prints the fields a form is built with against the fields any one visitor sees.

Show and hide: the same rule from two sides

A show rule reveals a field when an earlier answer needs it: the service picked shows its questions, the delivery choice shows the address, the guest count shows the extra names. A hide rule is the same rule written the other way, and a form should use one or the other for a given field, never both. On the request a quote form sheet five base fields and four services with three questions each is 17 fields built and 8 seen, 72 seconds at nine seconds a field, and the nine hidden fields are the rule's whole value.

Require only when shown

A required field that is hidden is a form that cannot be sent, and it is the commonest way conditional logic breaks a form. Every required mark on a conditional field carries the same condition as the field, so a visitor who never saw the field is never blocked by it. The contact form design sheet prints the required share beside the seconds to fill, and on a form with logic the share to read is the required share of the fields a given visitor sees.

Route by the answer

The fourth rule decides where the entry goes and what the confirmation says: the service picked names who is notified, the priority chosen sets the reply time, the state entered decides which office replies. Routing is the rule that turns one form into the right form for each sender without any of them seeing the difference. In Shortcodo Pro the form is kept with its rules and each entry records the branch taken, so an entry that arrived without a field shows the rule that hid it.

Questions people ask about forms with conditional logic

How many rules can a form carry?

As many as can be said in a sentence each. When you cannot say which fields a given visitor sees, the sheet's fields built against fields seen is the number to get back to.

Can conditional logic change the price?

Yes: a chosen option reveals an option fee line, and the payment form calculator works what each branch of the form charges.

Does the free plan of a form plugin include conditional logic?

Often not; it is one of the features most commonly on the paid side. The best WordPress form plugin guide on this site says how to read each listing for it.

Sources

Related answers

Keep this form and its entries in Shortcodo Pro, $9 a monthEvery form, every entry, every payment in one register. $9 a month.