Custom code phone number form help

https://www.textzirby.com/bijan. On the page we have a phone form that’s formatted (555) 555-5555 specifically for twilio, so that twilio will text an automatic message to the phone number when the form is submitted. It was done with a custom code based on form ID/name - attached the screen short.

When we try to do the same thing on another page with the same name, I can’t make the formatting work. I have checked the id of the form fields and they are the same.

This is our site read only link.
https://preview.webfl

ow.com/preview/zirby?preview=98c2b3eeeed490b702bb18b6a90e5c09