Automatic Error Setup
Setup errors on the fly — no attributes.
Last updated
Was this helpful?
Setup errors on the fly — no attributes.
Last updated
Was this helpful?
Superform now intelligently detects and manages automatically error messages related to form inputs, enhancing accuracy and user experience without the need for extensive manual setup.
Superform's Proximity Context system automatically detects error messages based on class keywords like "error," "invalid," or "fail" within any of the two siblings below and one sibling above an input field.
Key Points:
Automatic Detection: Manages error messages within two siblings below or one sibling above the input.
Class Toggling: Automatically toggles error classes on both input fields and their parent elements for enhanced feedback.
HTML Example
HTML Example
HTML Example
Apply CSS transitions, such as opacity, to create smooth visual effects for a more dynamic and engaging user experience.
Need even more granular control?
It can also toggle sf-error-class
on inputs and their parent elements without needing explicit sf-error
attributes ( sf-error-class
and sf-error
are part of the Manual Error Setup — see ).
For more granular control over errors, such as toggling an extra class on error, or implementing toast notifications, please refer to the subpage.