Hi,

I'm probably missing something obvious here but....for the life of me I can't work out how to show a country field. When I use the component I get address (2 lines), city, province, postal code but no country field. Is this expected behaviour? I can't quite fathom why we wouldn't want to show a country field as well.

Thanks.

CommentFileSizeAuthor
#3 653168-postal-add_country_to_widget-3.patch819 bytesevNN

Comments

hadsie’s picture

I'm wondering the same thing... did you ever find an answer to this?

alexiswatson’s picture

Title: No Country Field » No Country Field Displayed in Address Form Widget
Component: Postal address component » Postal field
Category: support » bug

Confirmed the issue - I can't imagine why this is expected behavior. If this is by design, the maintainer is of course free to correct me.

evNN’s picture

StatusFileSize
new819 bytes

Here is a patch to put the country field in the "Address form" widget type. It uses a modified version of the already existing Forms API implementation of the country select to work with the "Address form" widget type rather than the component fields.

alexiswatson’s picture

Reviewed and confirmed patch in #3, running Drupal 6.17 on PHP 5.3. Anyone mind giving a second look so we can RTBC?

wylbur’s picture

Installed the patch and tested with Drupal 6.20 pm PHP 5.2.6. The Country dropdown was exposed, and provided the listing of countries.

barraponto’s picture

Status: Active » Reviewed & tested by the community

tested on php 5.2 and drupal 6.20. works just fine for me.