Hi everyone, currently I’m trying to apply Intl tel input to my phone number input, I’ve cloned this project from webflow, everything works well, the only concern is that the dropdown menu doesn’t have the search input, which I find a bit inconvienient, especially on mobile. I tried adding this countrySearch: true & useFullscreenPopup: true as the doc recommended, but doesn’t work. Here is my preview link Webflow - Upmesh - Global
Here is the code in the head tag
<!--International Phone Input Library-->
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/9.0.6/css/intlTelInput.css'>
<link rel='stylesheet' href="https://jackocnr.com/node_modules/intl-tel-input/build/css/demo.css?3">
<!-- Custom CSS-->
<style>
.intl-tel-input {
width: 100%;
}
.intl-tel-input .country-list {
border-radius: 8px;
background-color: #fff;
color: "#131313";
height: 800px;
}
</style>
Here’s the code in body tag
<!--International phone input-->
<script src='https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/9.0.6/js/intlTelInput.js'></script>
<script>
var input = $(".int-phone");
input.intlTelInput({
initialCountry: "sg",
utilsScript:"https://cdn.jsdelivr.net/npm/intl-tel-input@18.1.1/build/js/utils.js",
separateDialCode: true,
useFullscreenPopup: true,
countrySearch: true,
});
input.on("change", function () {
input.intlTelInput("setNumber", input.val()); //Format phone number e.g: "(123) 456-7890"
var fullPhone = input.intlTelInput("getNumber"); //Get number typed by user
$("#full_phone").val(fullPhone); //Add the full phone number with the dial code on a hidden input with "#full_phone" ID e.g. +11234567890
var countryData = input.intlTelInput("getSelectedCountryData"); //Get country data array
var countryName = countryData.name; //Get country name
$("#country").val(countryName); //Add country name on a hidden input with the "#country" ID
});
</script>