https://github.com/mitya33/fieldstate
FieldState is a HTML attributes-based API (with a JavaScript API for deeper use) for managing show-hide-available logic in HTML forms.
https://github.com/mitya33/fieldstate
fields forms html javascript state validation
Last synced: 9 months ago
JSON representation
FieldState is a HTML attributes-based API (with a JavaScript API for deeper use) for managing show-hide-available logic in HTML forms.
- Host: GitHub
- URL: https://github.com/mitya33/fieldstate
- Owner: mitya33
- License: mit
- Created: 2019-12-30T11:27:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-08T12:51:27.000Z (about 3 years ago)
- Last Synced: 2025-02-15T19:12:37.227Z (about 1 year ago)
- Topics: fields, forms, html, javascript, state, validation
- Language: JavaScript
- Homepage: https://mitya.uk/projects/fieldstate
- Size: 38.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FieldState
[Full documentation here](https://mitya.uk/projects/fieldstate)
FieldState is a visual state handler for form fields where the required/available state of a field depends on other factors - for example the values/selections of other fields.
At its heart FieldState saves you writing lots of code to control which fields suddenly become available/required based on user input in other fields. FieldState handles this via a simple, HTML5 data attributes-based API (with a JavaScript API for deeper usage).
Formore complex evaluations, FieldState supports regular expressions, callbacks, multi-field conditional chaining and various types of event.