New feature

New - conditional logic for smarter sorms 🤖

Release date
Thu, Jul 3

We just shipped a major upgrade to Form-Data: form logic — a simple, powerful way to make your forms dynamic and context-aware.

With logic blocks in your form descriptor, you can:

  • ✅ Show or hide fields based on answers

  • ✅ Personalize labels and help text

  • ✅ Dynamically style components

  • ✅ Build calculators, quizzes, and interactive flows

  • ✅ Reuse form values anywhere using simple expressions

---

Example: Smart Follow-up Field

Want to show a follow-up question only if a user selects “Other”? It’s now as easy as:

type select
name country
label Where do you live?
options
  USA
  Canada
  Other

type text
name country_name
label Please specify your country
show {{ true if country == "other" else false }}

That’s it! The country_name field will only appear when "Other" is selected.

---

Built on a flexible template syntax, Form Logic supports conditionals, filters, math, regex, functions, and much more - all inside your form descriptor.

Read the full docs: Form Logic in Form-Data

We’re super excited to see what you’ll build - from smart surveys to personalized flows and calculators.