Welcome to NFSFU234FormValidation Library
Hello there! ๐ We're thrilled to introduce you to NFSFU234FormValidation โ a lightweight JavaScript library that makes form validation a breeze, whether you're working with plain HTML forms or React.
Why you'll love it
- Customizable validation messages โ tailor errors to your product's voice.
- Required field support โ make sure the important stuff gets filled in.
- Inline error displays โ messages appear right where the user needs them.
- Modal error notifications โ for a more deliberate, focused error flow.
Getting started
Check out the Installation guide to get the library into your project, then head to Initialization to wire it up.
Basic example
const customErrorMessages = {
text: "EMPTY FIELD",
select: "SELECT FIELD IS REQUIRED",
email: {
empty: "EMPTY EMAIL",
format: "The email is not in the right format"
}
};
const myForm = document.getElementById("myForm");
nfsfu234FormValidation.validate(myForm, { customErrorMessages }, (response) => {
const { message, type, data } = response;
console.log(response);
});
License & credits
NFSFU234FormValidation is open-source under the MIT License. Big thanks to everyone who's contributed โ see the Credits page.
Questions or feature requests? Reach out on our contact page.