Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A great addition to this project would be inclusion of jquery.maskedinput.js, with the option of adding a mask alongside any validation rules, for a field. If you're not familiar with it, here's a demo - http://digitalbush.com/projects/masked-input-plugin/#demo
Comments
Comment #1
attiks CreditAttribution: attiks commentedI like the idea, clientside_validation works without any user interaction for the moment, we take the form api elements (and webform components) and add the validation, if we do the same for masks the only thing we can do is for are date and time.
The better solution will be to alter all cck (fields) forms and allow an admin to specify the input mask for each field, but then it might be better to build a separate module.
Comment #2
attiks CreditAttribution: attiks commentedthere's a module already doing the masked input, see http://drupal.org/project/masked_input
Comment #3
attiks CreditAttribution: attiks commentedAnd an other: drupal.org/sandbox/heliorcolorado/1195858
Comment #4
helior CreditAttribution: helior commentedThe sandbox project mentioned in #3 has moved to a project http://drupal.org/project/maskedinput
Comment #5
attiks CreditAttribution: attiks commentedClosing this for now, since other modules can handle this