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
// validate phone number strictly in the given region with custom error message
const phoneNumber= yup.string()
.phone('IN', true, '${path} is invalid')
.required();
How to make a custom error message ?
I tried something like this :
phoneNumber: Yup.string().phone(errorMessage="Please enter a valid phone number, include the country and area codes."),
But it does not work.
The text was updated successfully, but these errors were encountered: