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

attiks’s picture

Status: Active » Needs work

I 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.

attiks’s picture

there's a module already doing the masked input, see http://drupal.org/project/masked_input

attiks’s picture

And an other: drupal.org/sandbox/heliorcolorado/1195858

helior’s picture

The sandbox project mentioned in #3 has moved to a project http://drupal.org/project/maskedinput

attiks’s picture

Status: Needs work » Closed (works as designed)

Closing this for now, since other modules can handle this