Did you have a look at the Country enumeration module in the App store? https://appstore.home.mendix.com/link/app/1775/Daywize/Country-enumeration
Edit: Aargh my bad, read your question too fast.. :(