You can mask and format edit controls by using the "formatter" parameter on any form component. Javascript events will be automatically inserted in the output to enforce the constraints and format the values.