CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Updating Primary email through a Profile
Pages: [1]

Author Topic: Updating Primary email through a Profile  (Read 1487 times)

pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
Updating Primary email through a Profile
February 22, 2010, 01:21:20 pm
I'd like to allow a a user update their emails and their primary email through a profile.  The profile is set to be used for "View/Edit Drupal User Account".

I'm using three email types (Work, Home, Billing)

I can add each type to the profile along with their "primary" email by choosing Field Name = Contacts...Email...(Primary,Home, Work, Billing)

When the user edits any of the Home, Work, Billing emails, they update fine

When a user updates the primary email, the email tied to the users primary email on the contact record is updated.  There doesn't seem to be a way to update which email is tied to the primary email through the profile.  It seems that the only through the contact record can the primary email address be updated.  Is this true or am I missing something.

Thanks (again)


« Last Edit: February 22, 2010, 01:23:11 pm by pkeogan »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Updating Primary email through a Profile
February 23, 2010, 11:34:36 am
Can you try to replicate this on http://drupal.demo.civicrm.org?

Kurund
Found this reply helpful? Support CiviCRM

pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
Re: Updating Primary email through a Profile
February 23, 2010, 05:00:15 pm
I was able to replicate on the demo site.  See the profile "email profile"

The primary is set to "home". 

can you take a look.  Thanks

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Updating Primary email through a Profile
February 23, 2010, 10:51:22 pm
Seems to be working fine. Also if you have set home as your primary location type, then you should either include Email Primary or Email Home

Kurund
Found this reply helpful? Support CiviCRM

pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
Re: Updating Primary email through a Profile
February 24, 2010, 05:27:01 am
hmmm.... I must not be explaining what I'm expecting very well.

I would like the user to be able to switch their primary email type.  (Home, work, other, etc.) 

For example, if the user's primary email is set to home and the user wants to chnge it to work, I don't see how it can be done through a profile.

Thanks

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Updating Primary email through a Profile
February 24, 2010, 07:35:38 am
Quote
if the user's primary email is set to home and the user wants to chnge it to work, I don't see how it can be done through a profile.
No, this way user cannot set primary email.

Kurund
Found this reply helpful? Support CiviCRM

pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
Re: Updating Primary email through a Profile
February 24, 2010, 09:20:28 am
Thanks.  Is there another way?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Updating Primary email through a Profile
February 24, 2010, 09:26:36 am

you'll need to this via hooks, i.e. basically add one extra form element (checkbox to make that phone/email primary?) and then processing it

u'll need to be pretty decent at php/mysql/civicrm schema to make this change. ping us on IRC if u need help getting started

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
Re: Updating Primary email through a Profile
February 24, 2010, 02:26:51 pm
Thanks.  Pretty sure we can handle it.  In think we're actually going to take a simplier route of limited the users to one email.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Updating Primary email through a Profile

This forum was archived on 2017-11-26.