Hi Neil,
The tel
input still allows to enter text. In order to force a format, please add another custom attribute with name pattern
and value like [0-9]{3}-[0-9]{3}-[0-9]{4}
(123-456-7890). Then the plugin will use that pattern as a validator for data entered.
Please note that the value is a regular expression, where [0-9]
means only numbers, {3}
means only 3 times. For more info, please read this guide.