2025-12-18 01:11:17 +00:00
..
2025-12-18 01:11:17 +00:00
2025-12-18 01:11:17 +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

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:

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

Integration

Forms are served via:

  • REST API endpoints
  • HTML templates
  • JSON submission
  • Configurable styling