Concepts
Engine
Schema-first
A form0 schema is a JSON document with a top-level form object. The schema defines the
structure, rules, and behavior of a form without any UI code.
Fields and values
- Each field has a
data_name(human-readable identifier) and akey(internal identifier, typically derived fromdata_name). - Engine values are stored by
data_name, and expressions read them as$data_name. - Conditions reference fields by
field_id, which accepts eitherkeyordata_name. See Conditions and operators.
Engine state
The engine evaluates the schema and produces a state object with:
values: current field valueserrors: value and format validation errorsvisible: visibility flags per fieldrequired: requirement flags per fieldread_only: read-only flags per field
The engine reports whether a field is required, but an empty required field is not added to
errors. The renderer or host application applies submission rules. See
Schema validation.
How the engine works
These pages explain what the engine does at runtime:
- Evaluation cycle: what happens when the engine is created and every time a value changes.
- Calculations and dependencies: the order calculated
fields run in, cycles, failing expressions, and
EVAL(). - Parent and child scopes: how repeatable section rows are evaluated and which fields each expression can read.
- Events and operations: how event handlers are registered and run, and how their operations reach your application.
Last modified on