Form Show If, a web component that handles conditional form field visibility without framework dependencies.
Key features:
- Condition-based logic with simple attribute syntax
- Works with all standard form inputs including checkboxes
- Automatic field disabling to prevent unwanted submissions
- Custom CSS class support for styled transitions
- Zero dependencies and minimal file size
Perfect for dynamic surveys, multi-step forms, or any situation where you need fields to appear based on other field values.
๐ Blog Post
๐ GitHub Repo
๐ Live Demo
Top comments (0)