Add nickname field to Individual Contact Type

Created on 21 May 2025, 1 day ago

Problem/Motivation

Nickname is a common field to describe an individual. It avoids the urge to change a Contact's First Name to represent their preferred name or nickname, losing their first name in the process. This field is present in CiviCRM.

Proposed resolution

  • Add a Nickname text field to the Individual Contact Type
  • Possibly adjust the logic that sets the Contact's "name" base field

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jdleonard Austin, TX, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jdleonard
  • πŸ‡ΊπŸ‡ΈUnited States jdleonard Austin, TX, USA

    Interestingly, CiviCRM has "nickname" on Individual, Household, and Organization. I'm not sure I understand the use cases for Household or Organization having a nickname.

  • πŸ‡ΊπŸ‡ΈUnited States tyler.ashbaugh.questionmark

    @jdleonard, I'm going to create an issue fork for this issue.

  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    If the intention is to have nickname be a part of the individual's base name, it might be better to have nick name as part of the name field. ✨ Add more 'parts/fields' to the name Active

    Maybe alias is better. Maybe aliases.

  • πŸ‡ΊπŸ‡ΈUnited States jdleonard Austin, TX, USA

    Thanks for jumping in Tyler! This seemed relatively simple until it didn't, haha!

    Steve, I'm late to the game on the Name Field module. Thanks for your recent contributions there!

    My perception is that the Name field has purposefully avoided hosting the text of a preferred/nickname, but I don't understand why. Maybe a philosophy that a nickname is "not a name"? It feels like it might be an uphill battle to get Name to host a nickname.

    However the module appears to provide a passthrough of sorts...

    After adding a nickname field to the Individual bundle, it looks like one can then reference it via the field config form ("Preferred component source") at /admin/structure/crm/contact-types/manage/individual/fields/crm_contact.individual.full_name. Then it becomes available via the name formatters / field formatter.

    Do I have that right? It sure feels awkward, but also workable.

    What's your recommendation for how we proceed?

Production build 0.71.5 2024