Sets the constituent’s primary address, with a type of Home. Shortcut for Bloomerang.Account.setAddress(Home). You can only set one address on a constituent via forms.
If the constituent already has an address, Bloomerang normalizes the submitted address (e.g., 123 North 4th Street becomes 123 N 4TH ST), then compares it with existing addresses. If a match is found, the existing address is updated and marked as primary. If not, a new address is added and marked as primary.
If the country is not United States, Canada, or Bermuda, put the entire address in the street argument. Don’t use city, state, or zip.
| Parameter | Required | Description |
|---|
street | required | The street part of the constituent’s address (e.g., 123 4th Street) |
city | optional | The city (e.g., Indianapolis) |
state | optional | The state (e.g., Indiana). Use state abbreviations (IN). |
zip | optional | The ZIP code (e.g., 46216) |
country | optional | The country code. We recommend the 2- or 3-digit ISO country code. Default is US. |