Thank you for a great module!

Would it be possible to add an option to strip mask literals before saving the data? For example: I would like users to enter phone numbers using the input mask (999) 999-9999 but I do not want to store the (, ), -, and <space> characters in the database.

Apologies if this is already possible and I somehow missed the appropriate setting... but I wasn't able to find anything.

Note: I almost missed your (very useful) module. It seems like enabling it on fields that store phone numbers might be a common use-case. I wonder if there is a way to add "phone" (and words associated with other common use-cases) to its tags so that more people will find it on the drupal.org modules page.

Comments

deryck.henson’s picture

Certainly is not possible already and I second this request.

Started a patch to try but having not made this module myself, and not knowing Javascript, it's not the easiest project I've ever jumped into. Wish me luck lol