JS code for phone number field validation

I need a JS custom code to verify and limit the phone field. The code must have:

  • A country code prefix no erasable
  • A minimum and maximun number of digits.
  • Block no numeric characters
  • Error message when number is invalid

Thanks in advance.

Hi there,

I’m just dropping by to share some new information for anyone who might have the same question: we’ve released an update to the phone number field that now includes a native country code selector! You no longer need to use any code to improve data capture in this field.

You can see all the details here :backhand_index_pointing_down:

Please fell free to ask your questions!

1 Like