Is there an example available for validating a phone number? I am using Metronic 8 Vue demo 7.
Hi,
Unfortunately, at the moment, we do not have any prebuilt solution for phone number validation but you can use this npm dependency.
import {
isPossiblePhoneNumber,
isValidPhoneNumber,
validatePhoneNumberLength
} from "libphonenumber-js"
isPossiblePhoneNumber("8 (800) 555-35-35", "RU") === true
isValidPhoneNumber("8 (800) 555-35-35", "RU") === true
validatePhoneNumberLength("8 (800) 555", "RU") === "TOO_SHORT"
validatePhoneNumberLength("8 (800) 555-35-35", "RU") === undefined // Length is valid.