PDA

View Full Version : "phonefield" xtype: TextField that takes masked input in the format (999) 999-9999



MegaloKef
1 Sep 2011, 1:39 AM
Specialized form field for auto-validating phone numbers in the desired format.
27797

- Requires jquery as well as Josh Bush's "Masked Input" plugin.
- Form item is added as usual:


items:[
{
xtype: "textfield",
label: "Name:",
name: "first"
},
{
xtype: "phonefield",
label: "Phone:",
name: "phone"
}
]


- Default format is (999) 999-9999, can be re-configured as needed at item declaration time
- Fully working example included