How to modify international phone validation
-
Hi! Is there a way in which I can achieve the following:
- Add an extra number to a specific country code, in this case Argentina. It’s +54 but it’d like it to be +549 because a 9 is needed when mobile phones are entered. At the same time, I’d like people not to be able to remove this (currently they can)
- Remove or not allow spaces in the field, as well as no extra characters except for ‘+’. This is so the numbers I collect have no spaces or hyphens.
At the moment, I am using the input field with a pre-filled country code +549 and I allow no more than 14 characters, but this is not ideal as there is no validation.
Thanks a lot!
- You must be logged in to reply to this topic.