Closed (won't fix)
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2011 at 23:50 UTC
Updated:
3 May 2013 at 02:56 UTC
Jump to comment: Most recent
Comments
Comment #1
mxtI think you can simply add the following filter to your view:
Content: Address (field_address:country)and then choose the "is not empty (NOT NULL)" option for that filter.
This works very well in my case: your view will show only records (nodes) that have at least a value in the addressfiled field, and will omits nodes that doesn't have any value.
Hope this help.
Comment #2
mototribe commentedthx, I guess I wasn't specific enough. I want to show only countries in the exposed filter where I have matching records in the view (users instead of nodes in my example).
Comment #3
rszrama commentedUnfortunately, the way exposed filter forms are rendered, we cannot limit the options to only values found in the View results. Just think about the havoc that could play with pagination. : D
It should be possible to custom alter the form on a site-by-site basis, though, where you know what the name of the field is to check and can query the database to find country values to limit the select list to.
Comment #4
sachbearbeiter commentedtry maybe https://drupal.org/sandbox/david_garcia_garcia/2162097
sb