I have a contact number input field and I was able to prepend a country code dropdown to the input field.
Now when user selects the country code, the number format wi