Hey all!

Is there a way to only set certain fields from Addressfield to appear on the User registration page? For example, I'd like to add First/Last Name (and make those required to register) and Organization fields (not required to register) to the registration page, but not the Address/City/State/Country fields.

Thanks! :)

Comments

llorberb’s picture

I am interested in the same type of thing.

Is it possible to have address field left as not required/not supposed to show up in registration and then use themeing to have the desired address fields (i.e., country ex. postal code) pulled back into the registration form.

Thanks.

tky’s picture

Version: 7.x-1.0-beta2 » 7.x-1.0-beta3

Subscribed!

rszrama’s picture

Status: Active » Closed (duplicate)

There is no way to configure the widget itself to use a different format from one form to another. However, through a custom module you could use hook_form_alter() to do that kinda thing. I'll be documenting how to alter the form widget via #1267292: Document the user interface, API, and working with the form element, marking this a duplicate of that.