Formating input text field
Is it possible to format an input field to accept phone or zipcode formats, ie: ###-###-#### or #####-####.
Thanks
Ira
Thanks
Ira
Ira Berkowitz
February 6,
obj.onCellTextChanging = function(text, column, row){
if (column == 1) { // column-1 only
if (text.match(/[^0-9.+-]/)){
return "error"; // prevent non-digits
}
}
}
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021