I've created a CCK for distributors and I want to have their address and the country/region they cover but I'm confused as to how I can do that? If I say two locations on the content type how do I specify only country/region for the second one? Or is there a better way to do this?

Comments

csc4’s picture

Bump.

Has no-one had to do anything similar to this?

ankur’s picture

Well, this is a little tricky.

The way the code works: On a form w/ multiple locations, for location forms after the very first form, if the country field is the only field filled in when more than one field is enabled, the code "guesses" that the user didn't mean to fill in another form, so it doesn't save that location. However, it doesn't do this for the first location form.

So, the way to go about doing this is to use the first location for the region (making the country a required field) so that the location-save code doesn't throw it away and then to use the second location form for the distributors full address.

csc4’s picture

Thanks a lot - I'll give it a whirl!

bdragon’s picture

Status: Active » Closed (fixed)