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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Contact 'Name Box' sometimes shows email instead of FirstName LastName
Pages: [1]

Author Topic: Contact 'Name Box' sometimes shows email instead of FirstName LastName  (Read 704 times)

westy

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 1
  • CiviCRM version: CiviCRM 4.5.0
  • CMS version: Drupal 7.31
  • MySQL version: 5.5.38
  • PHP version: Ubuntu Linux 12.04.3
Contact 'Name Box' sometimes shows email instead of FirstName LastName
January 22, 2015, 03:11:26 am
On the Individuals 'Contact' card, at the top of the page is an editable Contact Name box.
90% of my contacts correctly show First Name, Last Name, but some show the contact's email address instead.
Clicking the 'Edit Contact Name' box shows the 'Prefix', 'First Name', 'Last Name' fields populated with the Contacts correct 'First Name', 'Last Name' but on clicking 'Save' the Contact Name still shows the email address.
Also, in these cases, with a contact called Fred Smith and email info@fsmith.com, typing this name in the white 'Find Contact' box (top Left) the automatic search will not show as I type Fred and only as I get to FRED SMI will it find fsmith .com.
Any ideas why I can't change the displayed name?
Thanks
CiviCRM 4.5.3 on Drupal 7
« Last Edit: January 22, 2015, 03:13:19 am by westy »

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Contact 'Name Box' sometimes shows email instead of FirstName LastName
January 22, 2015, 06:00:04 am
Weird, I've never experienced that before.
I assume this is only on your site and not reproducable on http://d45.demo.civicrm.org/
Try asking your question on the new CiviCRM help site.

westy

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 1
  • CiviCRM version: CiviCRM 4.5.0
  • CMS version: Drupal 7.31
  • MySQL version: 5.5.38
  • PHP version: Ubuntu Linux 12.04.3
Re: Contact 'Name Box' sometimes shows email instead of FirstName LastName
January 22, 2015, 08:20:42 am
No, I can't reproduce it on the demo site.
Even deleting the email completely and changing the contact name in the full edit box will not reset the original email address in the Name box.
Interestingly, creating a new contact with the same first name last name does not register as a matching contact and has no name in the 'Contact Name box.

Oh! something is broken. Creating a new contact with new data does not show any name in the Title. The name fields are shown in the edit box but on saving are not displayed as the title. So it looks like if the Title can't display first name last name, it looks for email address to display

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Contact 'Name Box' sometimes shows email instead of FirstName LastName
January 22, 2015, 01:08:05 pm
Look in Administer/Communications/Addressee Formats - is there a default checked for individuals?  Somehow the default got unchecked for one of my clients, although the result was different from your description.  Worth a look though
Andy Clark

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Contact 'Name Box' sometimes shows email instead of FirstName LastName
January 22, 2015, 01:59:08 pm
It sounds more like Individual Display Name Format is empty or incorrectly set on Administer > Customize data and screens > display settings.

Check that it is set to {contact.first_name}{ }{contact.last_name}.   If not and you set it to that, you should be aware that you need to rebuild the display_name field in contacts table, as the changes only take effect when an existing contact is edited or a new one created.

Also for the search problem you are having, you should check Individual Sort Name Format.  That is (currently*) used for searches, so if it is set to {contact.last_name}{, }{contact.first_name} you will need to type in smith, fred.

*I say "currently" as http://forum.civicrm.org/index.php/topic,35165 talks about changing this.
« Last Edit: January 22, 2015, 02:03:50 pm by joanne »

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Contact 'Name Box' sometimes shows email instead of FirstName LastName
January 22, 2015, 02:38:54 pm
Actually, it sounds like another manifestation of http://forum.civicrm.org/index.php/topic,33928.msg143820.html


« Last Edit: January 22, 2015, 02:46:09 pm by joanne »

westy

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 1
  • CiviCRM version: CiviCRM 4.5.0
  • CMS version: Drupal 7.31
  • MySQL version: 5.5.38
  • PHP version: Ubuntu Linux 12.04.3
Re: Contact 'Name Box' sometimes shows email instead of FirstName LastName
January 25, 2015, 03:51:02 am
Thanks joanne for pointing that out, that fixed it.
Thanks too to SarahG for the fix.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Contact 'Name Box' sometimes shows email instead of FirstName LastName

This forum was archived on 2017-11-26.