How can I make country code selection box for phone numbers like example listed

Hi Everyone

How can I make country code selection box for phone numbers like example listed

image

full example like this --> https://codepen.io/piyushpd139/pen/JjNjzBb

but without using webview or html code ?

thank you all

You would need to maintain a list of countries, country codes and flags locally on the device (e.g. in your assets) and format your display accordingly.

1 Like

I think the flag is too small - personally, I would display a list of flags and set the country code in the Text Box.

How many countries do you intend to include?

1 Like

Perhaps this may help, you would need to add the phone codes

and a csv of country phone codes

PhoneCodes - Sheet1.csv (3.8 KB)

2 Likes

Here is an example without the extension.

CountryCode.aia (290.0 KB)

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.