Answers.Body: <p>You can alter the 'Individual Display Name Format' in display preference to include {initial} token through custom extension using <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_tokens/" rel="nofollow noreferrer">tokens</a> and <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_tokenValues/" rel="nofollow noreferrer">tokenvalues</a> hook.</p>
  <p>If you don't want to store this in the database and just alter the display on screen then you can use <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_contact_get_displayname/" rel="nofollow noreferrer">contact_get_displayname</a> hook to alter the display name.</p>
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-10T14:06:04.533Z
Answers.LastActivityDate: 2018-09-10T14:06:04.533Z
Answers.LastEditDate: 2020-06-17T09:00:50.810Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Hopefully self explanitory.</p>
  
  <p>I want to extract the initial from the first name (if there is one) e.g. Mr John Smith appears as Mr J Smith as default.</p>
  
  <p>Would be grateful for any help on this one.</p>
  
Tags: <contacts>
Title: Display Contact Addressee as {prefix} {Initial} {last_name}
ThreadText: # Display Contact Addressee as {prefix} {Initial} {last_name}
  
  (Asked by: username_0 on 2018-09-10)
  
  Hopefully self explanitory.
  
  I want to extract the initial from the first name (if there is one) e.g. Mr username_0 Smith appears as Mr J Smith as default.
  
  Would be grateful for any help on this one.
  
  **Tags:** contacts
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-09-10. Score: 1
  
  You can alter the 'Individual Display Name Format' in display preference to include {initial} token through custom extension using [tokens](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_tokens/) and [tokenvalues](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_tokenValues/) hook.
  
  If you don't want to store this in the database and just alter the display on screen then you can use [contact\_get\_displayname](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_contact_get_displayname/) hook to alter the display name.
  
  username_1
  
  
  ---
  
  