Jump to content

Recommended Posts

Posted

Displays countries and continents and their iso codes.

The "value" for each country is the two-letter country code. 

As an added bonus, the country names are displayed in the language of the user (sorted by name ASC) if the appropriate translation was added.

 

read more ...

 

  • Like 17
  • 4 months later...
Posted

Hi

Is it possible to get all countries and not only by continent? Currently if I let empty "choose continent to get countries from", the field is empty. It works only if I choose one of the continent.

Thanks!

  • 3 weeks later...
Posted

@mel47 You could use the following methods:

$countries = $modules->get('ContinentsAndCountries')->getCountries();

// OR:

$countries = $modules->get('ContinentsAndCountries')->findBy('countries', ['code', 'name']);

 

Posted

Thanks

I get it's in case for use in a php template? I need it for backend, in the selection input.

Melanie

  • Like 1
  • 2 weeks later...
  • 1 year later...
Posted

Hi all

I would like to use this field with Formbuilder but somehow don't manage to add that. Is it possible to use this with Formbuilder?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...