Answers.Body: <p>Display Name and Sort Name formats are both configurable at Administer > Customize Data and Screens > Display Preferences.  The default format for Display Name includes the suffix.  </p>
  
  <p>On a test webform with an existing contact and autocomplete showing the Display Name, the suffix is included.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-27T09:23:50.780Z
Answers.Text: Thanks Aidan. That does indeed work. I'd prefer to use Sort Name as it seems to be easier for folks to browse the list but this will do for now!
Answers.UserDisplayName: pmoz
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-26T22:47:53.603Z
Answers.LastActivityDate: 2017-01-26T22:47:53.603Z
Answers.UserDisplayName: Aidan
Answers.Body: <p>As I understand it, the only options available to show in the autocomplete are those listed under Contact Display Fields on the Existing Contact component ie</p>
  
  <ul>
  <li>Display</li>
  <li>Sort</li>
  <li>First</li>
  <li>Middle</li>
  <li>Last</li>
  <li>Current Employer</li>
  <li>Job title</li>
  <li>Nickname</li>
  <li>Contact ID</li>
  <li>External ID</li>
  <li>Source</li>
  <li>Email</li>
  <li>City</li>
  <li>District</li>
  <li>State</li>
  <li>Country</li>
  <li>Postal Code</li>
  <li>Phone</li>
  </ul>
  
  <p>I think that getting Prefix / Suffix added would require some customisation and/or a PR (pull request) on the Webform CiviCRM module, and see if the maintener accepts it.</p>
  
  <p>If you need to find a developer to help then you can check the <a href="https://civicrm.org/service-providers" rel="nofollow noreferrer">Partners List</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-26T22:27:52.337Z
Answers.LastActivityDate: 2017-01-26T22:27:52.337Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>Another option for Drupal users would be to make a View for your 'search' and a link from that over to the webform which brings across the 'contact id' in the url eg node/xx?cid1=yy</p>
  
  <p>We tend to take this approach when more complex search mechanism is required than offered via the 'autocomplete' in webform.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-27T22:48:31.177Z
Answers.Text: Good suggestion Pete. That's a method I implement too. I was trying to make it one step for these particular users.
Answers.UserDisplayName: pmoz
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-26T22:29:35.490Z
Answers.LastActivityDate: 2017-01-26T22:29:35.490Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>When we create a webform for users to select contacts from a list whether we select to display display name or sort name it does not include suffixes. All of our contacts are families, many of which have suffixes (Sr, Jr, etc.) which makes it very hard to discern which contact is the right contact.<p>We have set the webform up to display the contact's full name including prefix/suffix once they select them from the list and it works ok, but it is not the slickest solution.<p>Is there a method to either alter what Civi includes as the sort name or display name or to alter the webform select list to include the prefix or suffix?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-01-26T22:48:36.570Z
Comments.Text: What version of Civi are you using?
Comments.UserDisplayName: Aidan
Tags: <drupal><contacts><webform-civicrm>
Title: How to display sort name with prefix/suffix in webform select list
ThreadText: # How to display sort name with prefix/suffix in webform select list
  
  (Asked by: username_0 on 2017-01-26)
  
  When we create a webform for users to select contacts from a list whether we select to display display name or sort name it does not include suffixes. All of our contacts are families, many of which have suffixes (Sr, Jr, etc.) which makes it very hard to discern which contact is the right contact.
  
  We have set the webform up to display the contact's full name including prefix/suffix once they select them from the list and it works ok, but it is not the slickest solution.
  
  Is there a method to either alter what Civi includes as the sort name or display name or to alter the webform select list to include the prefix or suffix?
  
  **Tags:** drupal, contacts, webform-civicrm
  
  > **Comments:**
  > **username_1**: What version of Civi are you using?  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2017-01-26. Score: 2 | Accepted answer
  
  Display Name and Sort Name formats are both configurable at Administer > Customize Data and Screens > Display Preferences. The default format for Display Name includes the suffix.
  
  On a test webform with an existing contact and autocomplete showing the Display Name, the suffix is included.
  
  > **Comments:**
  > **username_0**: Thanks username_1. That does indeed work. I'd prefer to use Sort Name as it seems to be easier for folks to browse the list but this will do for now!  
  
  ---
  
  ### Answer by username_2 on 2017-01-26. Score: 1
  
  As I understand it, the only options available to show in the autocomplete are those listed under Contact Display Fields on the Existing Contact component ie
  
  * Display
  * Sort
  * First
  * Middle
  * Last
  * Current Employer
  * Job title
  * Nickname
  * Contact ID
  * External ID
  * Source
  * Email
  * City
  * District
  * State
  * Country
  * Postal Code
  * Phone
  
  I think that getting Prefix / Suffix added would require some customisation and/or a PR (pull request) on the Webform CiviCRM module, and see if the maintener accepts it.
  
  If you need to find a developer to help then you can check the [Partners List](https://civicrm.org/service-providers)
  
  
  ---
  
  ### Answer by username_2 on 2017-01-26. Score: 1
  
  Another option for Drupal users would be to make a View for your 'search' and a link from that over to the webform which brings across the 'contact id' in the url eg node/xx?cid1=yy
  
  We tend to take this approach when more complex search mechanism is required than offered via the 'autocomplete' in webform.
  
  > **Comments:**
  > **username_0**: Good suggestion Pete. That's a method I implement too. I was trying to make it one step for these particular users.  
  
  ---
  
  