An open API service indexing awesome lists of open source software.

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.

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.