You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a registration form. And we want to check on blur if the email is available.
Now is it somehow possible to only validate and show a error for this email field
without validating the complete form with form.getValue() ?
The text was updated successfully, but these errors were encountered:
to validate only a filed you can use something like that: this.formRef.getComponent('email').validate() - you will validate only this field.
by validate, as far as i know, this tcomb-form-native, verify if the field value satisfy the type (or subtype) conditions..
if you need to satisfy your condition async in an external source, i belive it will not be possible by the subtype definition, because the tcomb-form-native only work (again, as far as i know) with synchronous code.
I solved this in my solution by ignoring the 'validate ()' function and modifying the field option directly by change the 'hasError' using t.update() .
Hi,
We have a registration form. And we want to check on blur if the email is available.
Now is it somehow possible to only validate and show a error for this email field
without validating the complete form with
form.getValue()
?The text was updated successfully, but these errors were encountered: