2026-01-11 22:35:49 +00:00
..
2026-01-11 22:35:49 +00:00

Web Backend Examples

Web-based form rendering examples using HTML/CSS.

Files

  • web_registration_form.toml - User registration form for web

Running Examples

cargo run -p typedialog-web -- --config web_registration_form.toml
```text

Then open browser to `http://localhost:3000` (or configured port).

## Features

### Web-Specific Capabilities
- HTML form rendering
- CSS styling
- Responsive design
- Browser validation
- AJAX submission

### Client-Side Validation
- Real-time field validation
- Error messages
- Success feedback
- Field-level helpers

## Use Cases

- Public registration forms
- Survey applications
- Customer feedback
- Data collection
- SaaS onboarding

## Form Structure

Web forms use the same TOML format but support additional web-specific properties:

```toml
[fields.email]
type = "email"
label = "Email Address"
placeholder = "you@example.com"
help_text = "We'll never share your email"
```text

## Integration

Forms are served via:
- REST API endpoints
- HTML templates
- JSON submission
- Configurable styling