This script adds a country selector with flags and dialing codes to the phone number field on a Classic Builder form, using the intl-tel-input library.
This is community code, not an official Unbounce feature. Unbounce Support can't troubleshoot custom code. Test it on a published page before relying on it, and work with a developer if you aren't comfortable editing HTML, JavaScript, and CSS.
See the demo page built in Unbounce.
Add the dropdown to your form
- Copy the first script and add it to the JavaScripts section with placement set to Head.
- Copy the second script and add it to the JavaScripts section with placement set to Before Body End Tag.
- Copy the CSS and add it to the Stylesheets section.
-
Set the ID of your phone number field to
phone. - Save and republish the page.