Skip to main content

How do I validate and fill in answers with Rules?

Use rules to check answers while the form is being filled in or fill them in automatically, also with help from AI.

Written by Jessica Franco

Besides locking questions, Rules can check an answer while the form is being filled in (Validate) or fill in a question automatically (Complete). This prevents errors, such as a license plate with the wrong format or negative mileage, without having to check them later.

💡 Creating and editing rules is available on the Enterprise plan. In the app, version 4.22.0 or later is required.

Validate

Checks an answer while the form is being filled in. A Validate rule can:

  • Require a format: license plate, VIN, or a custom pattern.

  • Compare the answer with other answers in the form.

  • Prevent duplicate answers.

  • Make a question required when a condition is met.

Each rule has its own message, and you choose what happens if the answer doesn't meet it:

  • Don't allow saving: the answer can't be saved until it's corrected.

  • Show a warning: the message is shown, but the answer can still be saved.

Complete

Fills in a question automatically, for example with:

  • Today's date.

  • The user who is answering.

  • A calculation using other answers, such as Expense = Kilometers / Fuel efficiency + Toll.

You can leave the value editable or fixed.

Form-wide rules

Compare several questions with each other. For example, that "Person in charge 1" and "Person in charge 2" aren't the same person.

How do I create a rule?

  1. Open the form in the Form Builder and go to the Rules tab.

  2. Click Create rule.

  3. Under What do you want to do?, select Validate or Complete.

  4. Set up the rule and click Save rule.

Build with AI

Describe the rule in words, for example "the license plate is required if the equipment is Truck", and the AI suggests the setup. Review the suggestion, adjust it if needed, and save it. You can also keep setting up the rule manually.

Where do rules work?

Rules are evaluated on the web platform, in public links, and in the app, including offline.

Even if an answer comes from another channel, answers that don't meet a Don't allow saving rule are rejected.

Frequently asked questions

  • What happens to the validations my questions already had? They appear in the Rules tab as read-only.

  • What happens if I delete a question that uses a rule? The builder lets you know which rules are affected.

  • Do my Lock rules still work? Yes, they work just as before. See How do I lock form questions with Rules?

Did this answer your question?