Details
-
Type: New Feature
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Won't Fix
-
Affects Version/s: 2.2.4
-
Fix Version/s: Unscheduled
-
Component/s: CiviCRM Profile
-
Labels:None
Description
Support configuring Profiles with address fields where the user can select the "type" of address they are entering (e.g. Home, Work, etc.).
http://forum.civicrm.org/index.php/topic,8212.0.html
Implementation
============
1. Allow admin to select Address Location Type as a Profile field
2. Add form rule for Profile Admin: If a profile contains address location type field, then all other address fields must use the "Primary" location type
3. When user is filling out the profile, they can select the location type.
4. PostProcess: set is_primary = true and set address.location_type_id = location type selected by user on the profile form. If location type is not required in the profile and not set, then set address.location_type_id = default location type for the site.