Phone number input field format #695
-
Hello We're looking to upgrading SIM order page to paste component. One of the required filed is "country code + phone number". In error scenario we like to give out meaningful error that explains user the phone number format specific to the selected country code. Is there existing library or paste component that we can use to auto format phone number input field? Any concerns we need to address for accessibility if we are proposing the auto formatting the input filed. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
@richbachman @SiTaggart can our inputs support auto-formatting? |
Beta Was this translation helpful? Give feedback.
-
No. We leave formatting of fields to the delivery team since they can provide the best possible experience. That being said, I would speak to your partner PDs in Phone Numbers to see if they have come up with any ideas. @vnguyen94 or @ramoneguru perhaps? |
Beta Was this translation helpful? Give feedback.
-
@ishah-twilio I think a library like Formik would probably work for your needs. @vnguyen94 built a Paste/Formik integration library that might be helpful as well. |
Beta Was this translation helpful? Give feedback.
No. We leave formatting of fields to the delivery team since they can provide the best possible experience. That being said, I would speak to your partner PDs in Phone Numbers to see if they have come up with any ideas. @vnguyen94 or @ramoneguru perhaps?