Has built-in US telephone number validation enabled by default. If you don’t require this, you can disable it with the ‘validate’ property.
{
"name": "telExample",
"id": "telId",
"type": "tel",
"autofocus": false,
"label": "Telephone Example",
"validate": true, // will validate phone numbers by default (999-999-9999). disable this to turn it off
"pattern": "", // use your own regex. be sure to turn off 'validate' above when you use this - you'll have to escape some characters and omit the beginning/end forward slashes
"required": true,
"classname": "form-control secondClass",
"formGroup": true,
"placeholder": "Phone Number",
"minlength": 1,
"maxlength": 100,
"data": {
"field": 0,
"testing": 123,
},
"value": "",
"title": "Phone Number",
"autocomplete": "on",
"disabled": false,
"readonly": false,
"size": 100,
"mask": "999-999-9999", // requires jQuery-Mask-Plugin https://github.com/igorescobar/jQuery-Mask-Plugin
"messages": {
"required": "Your phone number is required",
"invalid": "Your phone number must be valid"
}
}
{
"name": "telExample",
"type": "tel",
"label": "Telephone Example",
"required": true,
"maxlength": 15
}