Address Field is a Drupal 7 field module to hold postal addresses, implementing a subset of the fields defined in the xNAL standard.

learn more… | top users | synonyms

1
vote
2answers
32 views

Use views to prepopulate fields

I have a site that generates letters to be sent to schools. The visitor arrives at the front page where they are presented with a map (leaflet map) with all the local schools marked on it. They then ...
0
votes
1answer
38 views

Programmatically Change Administrative Area in AddressField

I have some external data that I have introduced to Drupal for a users address (not in an address field). I am setting it so that when a user loads the checkout page in commerce their info is ...
0
votes
2answers
25 views

addressfield module - remove addresses with only a country

For a site I am working on I am using the address field. Each node can have multiple addresses and at least one is required. All the addresses are in the US so I set the default to the US. When the ...
0
votes
1answer
16 views

How to change an address field that says “There is data for this field in the database. The field settings can no longer be changed.”?

How to change an address field that says "There is data for this field in the database. The field settings can no longer be changed."? I want to add a "Company" field as part of the address. I don't ...
0
votes
0answers
66 views

Difference between hook_form_alter and hook_field_attach_form

I was attempting to add default values to the addressfield field type (on the Drupal Commerce billing pane), and originally tried doing this in hook_form_alter and it did not work. I then found the ...
0
votes
1answer
41 views

how to use hook_field_widget_form

I am trying to understand how the addressfield module is using hook_field_widget_form. When is it called and where are its parameters coming from? When I do a printout of its $instance parameter, I ...
0
votes
0answers
17 views

Set Value to Nothing using Rules

I'm using the addressfield module. In the module, the country field defaults to a specific country and cannot be nothing. Is there a way using rules I can set the country field to nothing? I thought I ...
0
votes
0answers
39 views

How replace city text box in shipping address with select component in drupal 7 commerce

I want to know, is there any way to change city textbox in shipping address (in Drupal commerce 7) to select component? in normal mode, user have to write the name of city but I want to change it to ...
0
votes
1answer
83 views

Migrate addressfield: Call to a member function import() on a non-object in migrate/includes/migration.inc on line 696

also posted to Migrate issue queue as a support request I am importing users and data from csv with a Migrate Group. The initial user creation and some additional data in other tables in working ...
0
votes
1answer
83 views

Send Billing Information from Address Field to PayPal site using WPS

Referring to the solution here posted by Fnik, I'm trying to implement it on my own custom module. But I thing our two sites are configured differently, and since I'm not too familiar with php, I ...
5
votes
1answer
142 views

How do I populate an address field in php?

I want to import data from a external source and so am writing a module that creates content by populating the fields of node bundles in code. I followed this guide which is great. So I am working ...
0
votes
1answer
28 views

How should I structure a node migration that has three locations?

I have a situation where I need to migrate a D6 node that has three location fields. The example code shown in the drupal module documentation ( https://drupal.org/node/2018113 ) isn't working. I ...
0
votes
0answers
112 views

How to make address1 field and zip code non required with Address Field module

I'm using Drupal 7 and the Address Field module I want to make it a required field but only the Country and City values. I want to leave the zip code and Address as optional. I don't find a way to ...
0
votes
1answer
96 views

Drupal7: Addressfield Module: Add State (for Germany) and Drop Down Menu

How do you change the default fields in the addressfield Module for a given country? For Germany you have , while for USA you get , including a nice drop down menu with all 51 states. I want to ...
-1
votes
1answer
90 views

commerce_customer_address

I am using Commerce Kirckstart installation. I would like to change a field in commerce_customer_address. I only want a new field, like telephone and I would like to remove State. Some one knows how ...
0
votes
0answers
18 views

how to create a new schema column for a taxamony reference

I am trying to hack the addressfield module and add some plugins to add more fields. I started with Middle Name, and that worked. Part of this process included updating the database schema. This is my ...
0
votes
1answer
63 views

how to update a field schema

I am trying to add a field (middle name) into the field_schema of the contrib addressfield module (I initially didn't want to hack it, but was unsucessful in adding a field in from my custom module.). ...
0
votes
0answers
10 views

Address field form in external module [duplicate]

I need to create a custom form and in it there is an address but I can't figure how to use the address field form. There is a way to use the address structure defined in the Address field module?
1
vote
1answer
100 views

Migrate Module and AddressField Locality/City Lookup in PrepareRow Fails

I'm running a migration to move volunteers from a csv file to drupal. I have written the following code. <?php /** * @file * Migration for Volunteer File */ ...
0
votes
1answer
240 views

Make commerce billing information readonly

I want to prepopulate commerce billing address in checkout process and make all fields in the address field readonly. I've tried the next code: $form['customer_profile_billing']['#disabled'] = TRUE; ...
1
vote
2answers
99 views

Expand Addressfield Components in Views

Situation : I have added few more fields in user registration form using account settings->manage fields. The type of the field is cck address field. I created a new view as json document, and I ...
-2
votes
1answer
99 views

Empty default value in a addressfield field

I have created a content type with a addressfield field but in the configuration field form It doesn't let me set an empty default value. How can I fix it?
0
votes
0answers
42 views

Pre-populate an entity field of addressfield type

i need to programmatically create an entity with an field of addressfield type, can you help me? there is a code example $current_home = entity_create('home', array('type' => ...
0
votes
0answers
24 views

Addressfield module load father locality

I am using the contrib module addressfield on D7, I have a dependent locality(city) and a father locality(province). I need to obtain the province from the name of the city. Can you help me? I am ...
0
votes
0answers
31 views

Subscriptions depending addressfield field

I have a events web page based on Drupal 7.Each of the events has a adressfield field. Now I need add a subscriptions functionality. I need each user can subscribe to the events taking place in one ...
0
votes
1answer
34 views

How to use _addressfield_country_options_list()

I tried to use _addressfield_country_options_list() to get the countries for a select box. The returned list contains all countries, but I need just the once selected for a special customer profile ...
1
vote
0answers
63 views

Addressfields hide when I come back from review page

I am facing a issue for several days & trying to resolve it but couldn't get any way through it. At first I thought it's issue with commerce_postal_filter module but it's not. So the real issue ...
0
votes
0answers
200 views

Drupal Commerce address validation and/or separate house number field

Drupal Commerce uses Address Field for its billing information. Street addresses are implemented as Address 1 and Address 2 lines. No other fields will be added to the module, since they want to keep ...
3
votes
1answer
111 views

hook_field_attach_presave not saving - user profile field

EDIT: As per a suggestion below, I tried using hook_field_presave, but couldn't access any parameters of the field. I then tried hook_field_attach_presave, but my alterations aren't being saved. My ...
0
votes
1answer
236 views

Address field “Same as above”

I have 2 address fields : Res. addr and Permanant addr. On clicking another field : same as above I want to copy all the values entered in Res. addr to Permanant addr. Please let me know how to do ...
1
vote
2answers
107 views

How to assign a dynamically updating date to a user based on a related field on their profile

I have a site where Users who can expect a delivery to their address every week depending on their delivery route. I also have a Content Type of "Delivery Route" and a Content Type of "Delivery" with ...
1
vote
1answer
68 views

Is it possible to add help text to addressfield module fields?

I would like to add some help info to address field fields from Address Field Module (http://drupal.org/project/addressfield). Is that possible, or do I have to use Javascript?
0
votes
1answer
111 views

How can I use tokens for Addressfield values without using Addressfield_tokens?

I would like to use the Town/ City field as a token for Pathauto. I thought the Addressfield_tokens module was perfect for this, but Entity Tokens breaks Pathauto's patterns control panel; the issue ...
1
vote
0answers
73 views

Can conditions be attached to how a Geofield is populated?

Some of my nodes will be created via Feeds, which will import lat/long data, which I can store in Geofield to pass to Leaflet. However, some of the feeds I am using do not have lat/long data, so I ...
1
vote
1answer
135 views

using same addressfield for profile2 and commerce module

I have a site with two different profiles (with different fields) where one of these are able to buy a product. In this context I want to use the same addressfield for one type in the billing ...
0
votes
2answers
737 views

zero distance in views geofield proximity problem

I am having trouble getting it views to calculate the distance. I want a current user to see the distance to other users however the only result I have gotten is 0 between users. I tried to follow ...
2
votes
2answers
508 views

Rearranging subfields with the Address Field module

Is there a way to rearrange the fields within the widget with a specific hook? Should I use hook_form_alter()? To be more specific, I want to put the country field below the zip-code field when using ...
0
votes
1answer
299 views

Adding an address to a node's address field programmatically

I am presenting a form to receive an address. I want to take the data and add it to a node that has an address field (from the address field module). Can someone point me in the right direction on ...
2
votes
2answers
197 views

Overriding Class Div Form-API

Objective: To override the default classes and divs that are spit out from the Form-API from my custom addressfield implementation in a Drupal Commerce checkout pane. I need to make the classes/divs ...
1
vote
4answers
1k views

How can I set a default value for the country in an addressfield?

I'm trying to set the default value for a country in an addressfield (caught in hook_form_alter) and ensure that the associated fields (administrative area, etc.) are refreshed properly. How can I do ...
5
votes
1answer
2k views

Mark a location on a map (Google Maps/OpenLayers) on a node creation or edit page - but with which module?

I have a custom content type, and I would like my users to mark a location on a Google Maps/OpenLayers map, save these coordinates, and on the frontend, show the location's map and the GPS ...
3
votes
1answer
410 views

Programmatically Update Geofield Data

My setup is: Addressfield on nodes to collect address data Geofield using "Geocode from another field" choosing the addressfield and the Google Geocoder When I edit/save a node in the UI, the data ...
0
votes
1answer
175 views

Use text field value on another text field on same node on save

I have two fields on a Content Type called Property that requires the same information and I am trying to have it so that it only needs to be inputted one time be the user. I am using the module ...
3
votes
2answers
783 views

How to prefill address field forms?

I've been using the Prepopulate module for a while, and it works really well. It can't prefill an addressfield type field, though. How can I achieve this?
1
vote
2answers
431 views

How can I display the value of an addressfield in a single line?

I modified the "Address form (country-specific)" bundled with the Addressfield module to take only a country, administrative area, and city; this works fine on the node edit form, but when the field ...
3
votes
2answers
700 views

How do I convert AddressField “Administrative Area” abbreviation to full name

The Address Field module automatically converts administrative area (i.e., State/Province) abbreviations to full names on node display. I need to do this in my own custom module but can't find the ...
1
vote
0answers
87 views

Render drupal field widget in custom page [duplicate]

Possible Duplicate: Is displaying a working Field Widget Form on its own possible? I have my module called mymodule. In mymodule.module I have: function mymodule_menu() { ...
0
votes
1answer
771 views

How can I show the drop-down lists for countries/administrative areas (from Addressfield) as exposed filters in Views?

When editing the values of addresses provided by the Addressfield module, selecting certain countries (e.g., the United States) automatically populates a drop-down list of states. I would like to do ...
3
votes
3answers
628 views

Alter the results returned by “Display a summary” for the Addressfield module

When I set contextual filters in a view for Content: my field: country and Content: my field: administrative area (state/province) and select "Display a summary" for "When the filter value is not ...
2
votes
3answers
499 views

Hide fields from “address_field Module” form

I have a site using Profile2 with address_field Module; and I would like to prevent users from filling out the follwing fields: Address 1 Address 2 ZIP Code Country The goal is is only to be able to ...