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
{{ message }}
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
I would like to use Custom Validation and define error Message.
The example given in doc is with async function:
validate={{async: this.validate}}
is it possible to use custom validate function without async call?
is it possible to define simply the errorMessage?
I tried (in functional component):
validate={{validate: myValidate, errorMessage: "my error msg"}} but myValidate not called
validate={{myValidate}} or validate={{validate: myValidate, ...}}; myValidate is called but errorMessage has to be stored and displayed on its own for example with AvFeedback
The text was updated successfully, but these errors were encountered:
async is just a example key (I used it b/c the example also demonstrates how to do async stuff, but it probably made it less clear), it can be any key (such as myCustomAwesomeCode). IIRC, the key has no special meaning, it just cannot be one of the predefined validation keys.
If the validation function returns a string, that string is used as the error message.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I would like to use Custom Validation and define error Message.
The example given in doc is with async function:
validate={{async: this.validate}}
I tried (in functional component):
validate={{validate: myValidate, errorMessage: "my error msg"}} but myValidate not called
validate={{myValidate}} or validate={{validate: myValidate, ...}}; myValidate is called but errorMessage has to be stored and displayed on its own for example with AvFeedback
The text was updated successfully, but these errors were encountered: