Is there any way instead of setting the validation per country phone format, the field auto-detect the country code and auto-adjust the validation rule for that country.

Another thing can be supporting Address Field Module to change that rule dynamically. Any chances?

Comments

g089h515r806’s picture

it is a good feature.

g089h515r806’s picture

Address field does not have phone column.

warmth’s picture

I didn't mean that. It supposed to user the Address Field to be able to understand what is your country and with that information in the hand you can adjust the validation of a normal text, number or even the phone field.

Some ideas are given here: #641984: Single phone field supporting all formats

g089h515r806’s picture

It will better that we support entity tokens when user config contry code.