Zova Form Source Reading Map
This page is a practical map for contributors and AI workflows that need to read Zova Form source code efficiently.
Use this page after Zova Form Under the Hood when your next question is not the runtime model itself, but which files to read first for a specific form-internals topic.
It answers a narrow question:
when I need to understand how Zova Form works internally, which files should I read first, and in what order?
Use this page together with:
- Form Guide
- Zova Form Under the Hood
- Rest Resource Under the Hood
- Rest Resource Source Reading Map
- Zova Source Reading Map
- Behavior Guide
- API Schema Guide
- Model Resource Owner Pattern
TIP
Zova Form docs path
- Form Guide — learn the public authoring surface
- Zova Form Under the Hood — learn how the runtime pieces cooperate
- Zova Form Source Reading Map — learn which files to read next
You are here: step 3. Previous page: Zova Form Under the Hood.
Why this page exists
The a-form module sits at the intersection of several Zova concerns at once:
- controller-oriented component design
- schema-driven rendering
- Zod and TanStack validation
- behavior-based field wrapping
- resource-driven CRUD page integration
This page exists for one narrow job:
- Form Guide explains how to author forms
- Zova Form Under the Hood explains how the runtime pieces cooperate
- this page gives the shortest file-order paths for specific form questions
How to use this page
For each topic below:
- start with the public guide to refresh the architectural intent
- read the first source file to identify the public surface
- continue into the next runtime file only if you still need the implementation detail
- stop as soon as you have enough information for the task
The goal is not to read the entire form stack every time. The goal is to choose the shortest correct path.
1. Public form surface and wrapper entrypoints
Use this path when you are asking questions like:
- what is the public Zova Form surface?
- where do
ZFormandZFormFieldenter the runtime? - how does
controllerRefreach the controller instance?
Read the docs first
Then read source in this order
zova/src/suite-vendor/a-zova/modules/a-form/src/.metadata/component/form.tszova/src/suite-vendor/a-zova/modules/a-form/src/.metadata/component/formField.tszova/src/suite-vendor/a-zova/modules/a-form/src/component/form/controller.tsxzova/src/suite-vendor/a-zova/modules/a-form/src/component/formField/controller.tsxzova/packages-zova/zova-core/src/composables/useController.ts
What each file clarifies
- metadata wrapper files show how the public component wrappers enter
useController(...) form.tsexposesZFormand its typed controller-facing props surfaceformField.tsexposesZFormFieldand the controller-aware slot contractuseController.tsshows how the controller instance is created and bound to the wrapper component lifecycle
2. Form controller ownership and form runtime
Use this path when you are asking questions like:
- where is the form instance created?
- where does
formStatecome from? - how does
submit()orreset()work in Zova Form?
Read the docs first
Then read source in this order
zova/src/suite-vendor/a-zova/modules/a-form/src/component/form/controller.tsxzova/src/suite-vendor/a-zova/modules/a-form/src/lib/beanControllerFormBase.tszova/src/suite-vendor/a-zova/modules/a-form/src/lib/beanControllerPageFormBase.tszova/src/suite-vendor/a-zova/modules/a-form/src/types/form.ts
What each file clarifies
component/form/controller.tsxis the main form runtime ownerbeanControllerFormBase.tsshows the shared$useForm(...)wrapper around TanStack FormbeanControllerPageFormBase.tsshows the page-controller-oriented variant for form pagestypes/form.tsshows the exposed type contracts for submit data, state, and events
3. Field controller ownership and field render flow
Use this path when you are asking questions like:
- how is one field connected to the parent form?
- where do
setValue(...)andhandleBlur()live? - how does one field become a rendered vnode?
Read the docs first
Then read source in this order
zova/src/suite-vendor/a-zova/modules/a-form/src/component/formField/controller.tsxzova/src/suite-vendor/a-zova/modules/a-form/src/component/formField/render.tsxzova/src/suite-vendor/a-zova/modules/a-form/src/types/formField.tszova/src/suite-vendor/a-zova/modules/a-form/src/component/formFieldPreset/controller.tsxzova/src/suite-vendor/a-zova/modules/a-form/src/component/formFieldBlank/controller.tsx
What each file clarifies
formField/controller.tsxis the field runtime owner and host-injected child of the form controllerformField/render.tsxshows the final render handoff through behaviors andzovaJsx.render(...)types/formField.tsshows field options, layout options, render context, and the$$FieldPropsmarkerformFieldPreset/controller.tsxshows the preset-driven delegation pathformFieldBlank/controller.tsxshows the free-row slot-only path
4. Schema-driven rendering and CEL/JSX resolution
Use this path when you are asking questions like:
- how does a schema become rendered fields?
- where do field props come from?
- how are metadata expressions or render providers resolved?
Read the docs first
Then read source in this order
zova/src/suite-vendor/a-zova/modules/a-form/src/component/form/controller.tsxzova/src/suite-vendor/a-zova/modules/a-form/src/component/form/render.tsxzova/src/suite-vendor/a-zova/modules/a-form/src/types/formField.ts
What each file clarifies
form/controller.tsxshows schema property loading, field CEL scope creation, and top-level field prop extractionform/render.tsxshows how schema properties become children when the form body is not manually overriddentypes/formField.tsshows the field render-context shapes that the runtime passes through to renderers and behaviors
5. Validation, submit flow, and server error normalization
Use this path when you are asking questions like:
- where is submit wired?
- how are form-level and field-level validators chosen?
- how are server validation errors pushed back into the form state?
Read the docs first
Then read source in this order
zova/src/suite-vendor/a-zova/modules/a-form/src/component/form/controller.tsxzova/src/suite-vendor/a-zova/modules/a-form/src/component/formField/controller.tsxzova/src/suite-vendor/a-zova/modules/a-form/src/types/form.ts
What each file clarifies
form/controller.tsxshowssubmit(...),_createForm(),onSubmitInvalid,onSubmitData, and error normalizationformField/controller.tsxshows how field validators are derived from Zod schema or explicit field optionstypes/form.tsshows the public event and submit-type contracts that the rest of the framework consumes
6. Provider config, default renderers, and behavior-based layout
Use this path when you are asking questions like:
- where does the default
Inputrenderer come from? - how does
formProvideraffect field rendering? - where do form-field layout behaviors enter the pipeline?
Read the docs first
Then read source in this order
zova/src/suite-vendor/a-zova/modules/a-form/src/component/formField/controller.tsxzova/src/suite/cabloy-basic/modules/basic-adapter/src/config/config.tszova/src/suite/a-home/modules/home-login/src/page/login/render.tsxzova/src/suite-vendor/a-zova/modules/a-form/src/component/formField/render.tsx
What each file clarifies
formField/controller.tsxshows how field props, layout, options, provider config, and behaviors are mergedbasic-adapter/src/config/config.tsshows the default Basic provider components and layout behaviorshome-login/render.tsxshows a page-levelformProvideroverride for layout behaviorformField/render.tsxshows how the behavior-wrapped render path leads to the final vnode
7. Resource-driven CRUD page integration
Use this path when you are asking questions like:
- how does a resource page feed schema and data into
ZForm? - where do
formMeta,formSchema, andformProvidercome from in CRUD pages? - how does submit delegate back to resource mutation logic?
Read the docs first
- Form Guide
- Model Resource Owner Pattern
- Tutorial 2: Create Your First CRUD
- Tutorial 3: Frontend Metadata Sharing
Then read source in this order
zova/src/suite/cabloy-basic/modules/basic-pageentry/src/component/blockPageEntry/controller.tsxzova/src/suite/cabloy-basic/modules/basic-pageentry/src/component/blockForm/controller.tsxzova/src/suite-vendor/a-zova/modules/a-form/src/lib/utils.tszova/src/suite/cabloy-basic/modules/basic-page/src/component/blockFilter/controller.tsx
What each file clarifies
blockPageEntry/controller.tsxshows the resource-driven CRUD form orchestration pathblockForm/controller.tsxshows how a block-level wrapper passes schema/data/provider/meta intoZFormlib/utils.tsshows the canonical scene-to-form-meta translation helpersblockFilter/controller.tsxshows the lighter-weight filter-form branch using the same form module
If your next question becomes how formScene becomes formMeta, then pageMeta, and finally visible shell/tab state, continue with Form Scene to Page Meta Guide.
8. Representative specimens to read before editing the framework
Use this section when you want one small example before reading the framework internals.
Read these specimens first
zova/src/suite/a-demo/modules/demo-basic/src/page/toolOne/controller.tsxzova/src/suite/a-demo/modules/demo-basic/src/page/toolOne/render.tsxzova/src/suite/a-home/modules/home-login/src/page/login/render.tsx
Why these three specimens matter
toolOneshows both schema-driven and manual form usage in one pagehome-loginshows a real page using presets, blank rows, and provider-level layout override- together they give you the public authoring shape before you descend into the form runtime
9. A compact reading strategy
When in doubt, use this order:
- Form Guide
- one real usage specimen such as
toolOneorhome-login - the public wrapper metadata under
src/.metadata/component/*.ts component/form/controller.tsxcomponent/formField/controller.tsx- render beans, types, and integration layers only if you still need more detail
That order usually gets you to the answer faster than starting from the deepest runtime files first.
10. Final takeaway
The fastest way to read Zova Form accurately is not to memorize every file in a-form.
It is to recognize which question you are asking:
- public wrapper question
- form-runtime question
- field-render question
- validation question
- resource-CRUD integration question
Then start from the smallest public file that matches that question and only descend into deeper runtime files as needed.