Can I format phone numbers as users type using Script blocks?

I'm trying to auto-format phone numbers (like 1234567890 → (123) 456-7890) while users type in a Phone input field. My Script block detects the typing and formats the number correctly in the console, but the formatted text doesn't show up in the actual input field that users see. Is it possible to change what appears in Typebot input fields using client-side JavaScript? If so, how?
2 Replies
Baptiste
Baptiste2mo ago
Formatting while typing is not possible unfortunately Any issue you have withe Phone number input on Typebot? It should work just fine
Bankroll
BankrollOP2mo ago
Thanks Baptiste - cool product btw! I was able to get it to force the formatting for US phone numbers, social security number and US EIN. Check it out.

Did you find this page helpful?