Answers.Body: <p>I suspect those tokens are coming from another module (possibly CiviCRM itself). I never added any token support to webform_civicrm. That said, the best way to achieve your goal is probably to use the token from the contact_1:existing_contact field. This has the upshot of working correctly even when the user is anonymous. It's something like</p>
  
  <pre><code>[submission:values:civicrm_1_contact_1_contact_existing]
  </code></pre>
  
  <p>(but would need to be adjusted if it is inside a fieldset)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-03T00:15:12.913Z
Answers.Text: Is there a way to get to, for example, the display name like that ? Or should I include the fields I need and I use a 'hidden' element for them (alas, display_name is not a field .. )
Answers.UserDisplayName: commonpike
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-03T03:18:30.450Z
Answers.Text: that token will render the display name of the contact
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-02T00:04:10.760Z
Answers.LastActivityDate: 2016-02-02T00:04:10.760Z
Answers.UserDisplayName: Coleman
Body: <p>Webform has a browser for 'available tokens'. civicrm-contact appears in it, but none of the tokens seem to work. Is there anything I have to do to enable them ?</p>
  
  <p>If I put this in the confirmation message of a testform</p>
  
  <pre><code>current-user:civicrm-contact:display-name
  [current-user:civicrm-contact:display-name]
  current-user:name
  [current-user:name]
  submission:user:civicrm-contact:display-name
  [submission:user:civicrm-contact:display-name]
  submission:user:name
  [submission:user:name]
  current-user:civicrm-contact:id
  [current-user:civicrm-contact:id]
  </code></pre>
  
  <p>The result, when filled out by a valid civi contact, is </p>
  
  <pre><code>current-user:civicrm-contact:display-name
  current-user:name
  pike
  submission:user:civicrm-contact:display-name
  submission:user:name
  pike
  current-user:civicrm-contact:id
  </code></pre>
  
Tags: <drupal><webform-civicrm><tokens>
Title: Tokens in civicrm webform - not showing contact
ThreadText: # Tokens in civicrm webform - not showing contact
  
  (Asked by: username_0 on 2016-02-01)
  
  Webform has a browser for 'available tokens'. civicrm-contact appears in it, but none of the tokens seem to work. Is there anything I have to do to enable them ?
  
  If I put this in the confirmation message of a testform
  
  ```
  current-user:civicrm-contact:display-name
  [current-user:civicrm-contact:display-name]
  current-user:name
  [current-user:name]
  submission:user:civicrm-contact:display-name
  [submission:user:civicrm-contact:display-name]
  submission:user:name
  [submission:user:name]
  current-user:civicrm-contact:id
  [current-user:civicrm-contact:id]
  
  ```
  
  The result, when filled out by a valid civi contact, is
  
  ```
  current-user:civicrm-contact:display-name
  current-user:name
  pike
  submission:user:civicrm-contact:display-name
  submission:user:name
  pike
  current-user:civicrm-contact:id
  
  ```
  
  **Tags:** drupal, webform-civicrm, tokens
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-02-02. Score: 3 | Accepted answer
  
  I suspect those tokens are coming from another module (possibly CiviCRM itself). I never added any token support to webform\_civicrm. That said, the best way to achieve your goal is probably to use the token from the contact\_1:existing\_contact field. This has the upshot of working correctly even when the user is anonymous. It's something like
  
  ```
  [submission:values:civicrm_1_contact_1_contact_existing]
  
  ```
  
  (but would need to be adjusted if it is inside a fieldset)
  
  > **Comments:**
  > **username_0**: Is there a way to get to, for example, the display name like that ? Or should I include the fields I need and I use a 'hidden' element for them (alas, display_name is not a field .. )  
  > **username_1**: that token will render the display name of the contact  
  
  ---
  
  