Displaying civicrm contact fields in drupal 7 registration and profile editing

I am using Drupal 7 with civicrm 4.5. I want to display civi contact fields in drupal registration and profiles formats. I used the civicrm profile to display the first and last name fields. But I don't know how to integrate address, phone and email fields like civi in ​​drupal (for ex for an address with [b] Other address [/ b] and [b] Location type [/ b], Add link, Delete, etc.). Using the civicrm profile, I could set up the home street address, etc. As separate. But I want as grouped as the civi displays. Is there a module for this? Any help is greatly appreciated. thanks in advance

+3


source to share


2 answers


For better or worse, CiviCRM profiles do not have these functions for choosing the type of location or adding an indefinite number of addresses, etc. They respect the type of location, so you can have a home address, city, state, zip code, etc. fields and work address of street, city, state, zip code, etc., and they will hang together as two addresses.



In front-facing forms, there is a way to do this using the Webform CiviCRM Integration module . You can set up multiple sets of address fields and let people choose the type of location for each. You can link to a Webform page from a custom form to invite people to fill in more details.

+3


source


An alternative approach using custom CiviCRM profiles would be to create a CiviCRM profile for each location, including address fields for each location, and expose all of them to the registration and / or view / edit screens of the Drupal account. For example, you can have one profile on the registration screen and have all the others only on the account view / edit screens, thereby allowing your users to develop their profile after registration and login.



Difficult, maybe simple, but it will work.

+3


source







All Articles