Jesús Pérez 6d045d62c9
feat(repeating-groups): implement duplicate detection across all backends
- 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
2025-12-21 11:38:14 +00:00
..
2025-12-18 01:11:17 +00:00

Basic Forms

Simple form examples for getting started with typedialog.

Files

  • form.toml - Minimal form structure
  • form_with_sections.toml - Organizing fields into sections
  • form_with_grouped_items.toml - Grouping related fields
  • base_from.toml - Base template for extending forms
  • debug_simple.toml - Simple form for testing/debugging

Usage

CLI Backend

cargo run --example form

TUI Backend

cargo run -p typedialog-tui --example tui_survey_form

Web Backend

Build your form in TOML and serve with the web backend:

cargo run -p typedialog-web -- --config form.toml

Features Demonstrated

  • Basic field definitions
  • Sections and grouping
  • Simple validation
  • TOML syntax basics