Look into using Constraint Validation for Nebula form validation [🟩 fully supported now] #1679
Labels
Frontend (Script)
Related to the client-side JavaScript.
Plugin / Library / API
For third-party resources such as WordPress plugins, external APIs, and other libraries.
Milestone
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation#Complex_constraints_using_HTML5_Constraint_API
Currently Nebula uses data attributes to manage real-time validation, but as browser support grows, consider switching over to (or also using)
setCustomValidity()
which will add custom messages to HTML5 validation messages.Not supported in IE11, but works in all other browsers. Could implement as a progressive enhancement. https://caniuse.com/#feat=constraint-validation
The text was updated successfully, but these errors were encountered: