- Fix has_unique flag reading from field definition (was scanning fragment fields) - Implement duplicate validation in CLI and TUI backends - Add item counter update in Web backend after add/delete operations - Refactor Web JavaScript: remove global constants, use closure-based state per group - Store repeating group config in data-* attributes instead of global variables - Update documentation and examples with unique = true attribute - All backends now enforce unique items validation consistently
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