Demo page:
https://idowu-plugin-demo.bubbleapps.io/version-test/pretty_phone_numbers
Demo editor:
https://bubble.io/page?id=idowu-plugin-demo&test_plugin=1767977611949x106283221647360000_current&tab=Design&name=pretty_phone_numbers&type=pageA robust utility plugin that cleans, formats, and validates phone numbers. It uses a "dual-logic" approach: it provides immediate manual formatting (brackets/hyphens) to ensure a great UI experience even while a user is typing, and then uses the Google libphonenumber library for official validation and international standards.
Description
Managing phone number inputs in Bubble can be messy. This plugin takes a raw phone number and a country dial code, then instantly outputs perfectly formatted strings for local display, international use, and database storage (E.164). It even handles the "null" page load issue by initializing all states with empty strings.
Key Features
Dual-Layer Formatting: Provides immediate "Pretty Format" manually so the UI never lags, then overrides with library-accurate formatting once the number is valid.
E.164 Standard Output: Automatically generates the +1234567890 format required by most SMS and API providers (like Twilio or Stripe).
Real-time Validation: Returns a simple yes/no (boolean) state indicating if the number is legally valid for the provided country code.
Auto-Cleaning: Automatically strips out non-numeric characters from your inputs, so you don't have to worry about users adding extra spaces or symbols.
Zero-UI Footprint: The element is invisible on the page, keeping your design clean.