Closed Donskelle closed 6 years ago
Hey Guys, i want to add a new validation rule to check if mail is available. Somethink like
ValidatorForm.addValidationRule('isEmailAvailable', (value) => { axios.post('/api/users/emailavailable', formDataClear) .then((response) => { if (response.data == "ok") { return true } return false }) });
Is there a way to set async validators?
Hi, currently you can't achieve it in some clear and reusable way but you can try to do something like this
Nice i can use that. Thanks for quick response.
Hey Guys, i want to add a new validation rule to check if mail is available. Somethink like
Is there a way to set async validators?