How can I limit the number of characters in the phone number attribute

Hi,

Unfortunately, this snippet won’t work here, you need to change the pattern option, please check this sample:

​I hope this is helpful to you.