Documentation started at http://drupal.org/node/1267280 based on my experiments. I am importing users with addresses. I am using all the defaults. Contributions to the documentation by people using other options are needed to explain the options.

Comments

peterx’s picture

Something worth documenting: I added an address to users. The address is formatted in the entry form but not when displayed on the user profile page. The user profile page has only the main heading for the address. There is no indication of the parts. How do you block out the address and indicate the city, state, spodt code, etc?

rszrama’s picture

Title: Documentation http://drupal.org/node/1267280 » Document the user interface, API, and working with the form element
Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Category: feature » task
colan’s picture

Priority: Normal » Major

Bumping this up to "major" as there are a lot of us that would really benefit. :)

kopeboy’s picture

Issue summary: View changes

I don't get what is happening here.
All those reference issues were closed and linked here, but I see nothing here.

I was interested in a prepopulated City field (select list or autocomplete after the province is chosen), are there any updates I am not aware of?

Thanks

bojanz’s picture

I've just committed #2392855: Provide a hook for altering address defaults which added hook_addressfield_default_values_alter(), the special hook for setting default values.
There's an example in addressfield.api.php, and it covers changing the default country AND providing per-country defaults for other fields.

That's resolves most of the pain that people wanted documented.
Leaving this issue open so that others get inspiration for any documentation they might want to contribute :)

@kopeboy
You need to write a custom plugin for that, the address-ch-example.inc plugin shipped with the module (example subfolder) provides code you can copy.