Hi,

I installed and enabled module. I am using it on a telephone field with (999) 999-999 mask format.
However, I am able to make entries like...
(123) 456-789
(123) 456-78
(123) 456-7

I thought this module would help me to force a 10 digit full phone number to be entered.

am I doing something wrong?

Comments

hgurol created an issue. See original summary.

dbiscalchin’s picture

Hi hgurol,

Currently, this module provides only client side masking. It means that no validation is enforced on the server side.

However, if your field is required, you can set the "Clear if not match" option to clear the field before submission. This would cause a validation error because the field would be empty.

The recommended solution, though, would be to write the validation code yourself or to try another module alongside Mask Field, like the Field validation module.

Regards,

dbiscalchin’s picture

Status: Active » Closed (works as designed)