How to limit the characters of the phone number

I want to prevent customers from placing more than X number of characters nor X less number of characters to avoid mistyped contact numbers

2 Likes

It might be possible with some Javascript, but I do not think it’s necessary, as we are working on a solution to make sure Phone numbers are valid before submitting the order. It might take sometime to be rolled out but will be worth the wait.

1 Like

I want to prevent customers from placing more than X number of characters nor X less number of characters to avoid mistyped contact numbers

Any news about the native phone number validation?

Please help us to how to set the limit of the phone number

Hi @Devesh_Kumar_Rai, @idelasotta, @Leonardo_Pedraza , @Camilo_Useche

I believe the above question was answered here: Help with a JavaScript code to limit the characters of the phone number

Looking forward to any feedback or suggestions. :smile:

Another article that might be useful: Phone Number Field Validation and Limiting With Error message and Country Code Included