# Schema form: multi-step registration

> A three-step form painted from a closed schema: sections, a field that appears and becomes required from an earlier answer, a step that opens once a track is…

Language: en
Canonical: https://texuli.com/examples/forms-registration/
Markdown: https://texuli.com/examples/forms-registration.md (this page). Every texuli.com page has a Markdown twin at its URL plus `.md` (the home page is https://texuli.com/index.md), and any page URL answers `Accept: text/markdown` with its twin instead of HTML.
Last Updated: 2026-11-13

---

[All examples](https://texuli.com/examples/)

A three-step form painted from a closed schema: sections, a field that appears and becomes required from an earlier answer, a step that opens once a track is chosen, a cross-field date rule and an error summary. Fictional event.

[Schema form: multi-step registration](https://texuli.com/examples/forms-registration/)

`forms-registration` · `forms/SchemaForm`

 forms schema

 Props
- `form`
- `headingLevel`
- `onSubmit`
- `values`

Live example loads in an isolated same-origin preview frame.

Source (forms/FormsRegistrationDemo.svelte)

```
<script lang="ts">
import { SchemaForm } from '@texuli/forms';
import { validateFormSchema } from '@texuli/forms/model';
import { REGISTRATION_SCHEMA } from './schemas.ts';

const result = validateFormSchema(REGISTRATION_SCHEMA);
let sent = $state('');
</script>

<section data-example="forms-registration" class="demo" aria-label="Schema form registration">
  {#if result.ok}
    <SchemaForm
      form={result.form}
      values={{ arrival: '2026-11-10', departure: '2026-11-12' }}
      onSubmit={({ values }) => {
        sent = JSON.stringify(values, null, 2);
      }}
    />
  {/if}
  {#if sent}
    <pre class="sent" aria-label="Submitted values">{sent}</pre>
  {/if}
</section>

<style>
  .demo {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    min-block-size: 32rem;
    color: var(--tx-foreground, CanvasText);
    background: var(--tx-background, Canvas);
  }
  .sent {
    margin: 0;
    padding: 0.75rem;
    font-size: 0.8125rem;
    border: 1px solid var(--tx-border, CanvasText);
    border-radius: var(--tx-radius-sm, 0.375rem);
  }
</style>
```

## For agents

A worked example rendered live in the browser; the isolated preview frame (`/examples/preview/<id>/`) shows the same example without the site shell, and the example page next to it carries its code. The live parts run in the browser and are not in this Markdown; the operations below do the same work through the read-only MCP server at https://texuli.com/mcp (no sign-in; see https://texuli.com/auth.md).

MCP operations ([reference](https://github.com/DailybotHQ/texuli/blob/main/packages/tools/docs/ops.md#operations)):

- `example.search`: Find component examples.
- `component.get`: Read a component manifest.

Docs:

- [Component docs for agents (llms.txt)](https://texuli.com/llms/llms.txt)
- [Catalog manifest snapshot (JSON)](https://texuli.com/catalog/catalog.json)
- [@texuli/examples README](https://github.com/DailybotHQ/texuli/blob/main/packages/examples/README.md)
- [texuli README](https://github.com/DailybotHQ/texuli/blob/main/packages/texuli/README.md)
