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) »
  • Custom field in Individual Display Name Format?
Pages: [1]

Author Topic: Custom field in Individual Display Name Format?  (Read 491 times)

aaronchow

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 3
  • CiviCRM version: 3.3
  • CMS version: Joomla
  • MySQL version: 4
  • PHP version: 5
Custom field in Individual Display Name Format?
February 12, 2014, 02:10:59 pm
Hi All,

Just curious, I created a custom text field (custom_8) to replace the built-in Individual Suffix field.  Under the Email Greetings, Postal Greetings and Addressee, I was able to reference this field by using {contact.custom_8}.  However, when I type in "{contact.individual_prefix}{ }{contact.first_name}{ }{contact.last_name}{ }{contact.custom_8}" under the Individual Display Name Format, I was unable to pull out the value.  For testing purpose, I changed it to {contact.nick_name} and successfully pull out the Nick Name.

So, I'm wondering if this can be done?  Thanks in advance!

- Aaron

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Custom field in Individual Display Name Format?
February 12, 2014, 02:41:10 pm
I've done this using the exact same syntax you have for an addressee display option:

{contact.individual_prefix}{ } {contact.first_name}{ }{contact.middle_name}{ }{contact.last_name}{ }{contact.individual_suffix}{ }{contact.custom_2}

That instance is running CiviCRM 4.3.3, so I can't rule out a regression bug!  I'd try the same thing on the demo server to see what happens - but it SHOULD be working.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

aaronchow

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 3
  • CiviCRM version: 3.3
  • CMS version: Joomla
  • MySQL version: 4
  • PHP version: 5
Re: Custom field in Individual Display Name Format?
February 12, 2014, 05:07:33 pm
Quote from: JonGold on February 12, 2014, 02:41:10 pm
I've done this using the exact same syntax you have for an addressee display option:

{contact.individual_prefix}{ } {contact.first_name}{ }{contact.middle_name}{ }{contact.last_name}{ }{contact.individual_suffix}{ }{contact.custom_2}

That instance is running CiviCRM 4.3.3, so I can't rule out a regression bug!  I'd try the same thing on the demo server to see what happens - but it SHOULD be working.

Thanks for the reply.

On the Demo Site, I created a custom contact text field and modified the display name value, but I'm unable to pull the custom field's value out, so I assume this is a bug.  But where may I file this bug report?  Thanks again.

- Aaron

jaapjansma

  • I post frequently
  • ***
  • Posts: 247
  • Karma: 9
    • CiviCoop
  • CiviCRM version: 4.4.2
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.4
Re: Custom field in Individual Display Name Format?
February 20, 2015, 08:32:21 am
Hey,

Is this issue solved? I think I came across the same issue Civi 4.4.x but I am not sure. So just wondering how you dealed with this issue.

Thanks,
Jaap
Developer at Edeveloper / CiviCoop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom field in Individual Display Name Format?

This forum was archived on 2017-11-26.