Form vALiDaTiOn made EASY | OneForm from Scratch 5
Vložit
- čas přidán 8. 03. 2023
- A simple way of adding validation to any form built with OneForm. Optional, built-in, and automatically restricts form submission.
Title Translation: Form Validation is Hard.
Docs: docs.oneform.dev/
NPM: www.npmjs.com/package/@onefor...
To make the validation objects more plug-and-play, the error message should also be able to take a function that takes the name and value as an argument. So then you could have a validation for a required field with errorMessage: ({ name }) => `${name} is required`. Something like that