I've previously only ever used the civicrm_subscribe module for collecting E-mail addresses, but we now have need for collecting the First and Last Names as well, so this is the first time I'm looking into trying to get those fields as well.

But when I fill out the form at www.example.com/user/subscribe, it only writes my email to the CiviCRM database and doesn't seem to do anything with the First Name and Last Name that I input.

Does anyone else have this issue or use this module (successfully or unsuccessfully) to grab First and Last Names?

Is it supposed to collect these? (I would assume so, since they are included in the form)

Comments

Anonymous’s picture

I can confirm your issue: first and last names are not written in CiviCRM.

douggreen’s picture

Status: Active » Fixed

Thanks! I just checked in a fix for this, please confirm that it works.

Anonymous’s picture

Confirming that first and last names working: great!

I tested only with civicrm (no drupal users).

Correct me if I am wrong: when an emailadres is present in civicrm then the new first and lastname do not overwrite the existing.

douggreen’s picture

Status: Fixed » Needs review

That's correct. I think that it only makes sense to update these values if they weren't already set, otherwise, someone unknown user could change all of your contact names. So, I just added some code (and checked it in) to set the name when they are not already set. Please test this latest change and mark as "fixed" if it works for you. Thank!

douggreen’s picture

Status: Needs review » Fixed

With one week pasing an no confirmation from @msn, I think that I addressed the emailaddress issue, so I'm marking as fixed.

Anonymous’s picture

Sorry, I did not read in this forum last week.

My 'overwriting' issue was ment as a remark: I was searching for a conformation, wich you made, thanks.

I did not test the last update, because I switched over to a civicrm profile ( I am not using the drupal user function) with more fields to fill in for a newsletter account.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.