Hi all,

I'm using the :country addressfield component in a View, but there is an issue:

  1. using :country (e.g field_address:country) as field, the right country for each record (nodes with addressfield) in views is correctly retrieved (e.g. "italy", "United States", ....)
  2. using the same :country (e.g field_address:country) as exposed filter only ONE country is exposed in my filters (and also in views admin configuration page).

The expected result should be that all matching countries have to be present as options in the exposed filter select

Please resolve this

Thank you very much

Comments

MXT’s picture

MXT’s picture

It seems that in exposed filters countries are taken from system country list, and not from countries associated to nodes in view results (as expected).

I've noticed also that in field_address settings page, in "Available countries", the explanation "If no countries are selected, all countries will be available." is not true. If you does not select nothing, only one country (presumably the active in language section) is shown in exposed filters. If you select other countries, they are shown in exposed filter list.

deardagny’s picture

I know this is an old thread, but did you ever find a solution for this? I'm still running into it now. No matter what options I select, "United States" is the only option that appears in the exposed filter. I've even set the default country on the address fields to "Canada," (there are plenty of nodes in the view with Canada set in the address) but doesn't seem to make a difference.