Answers.Body: <p>OK - this has driven me crazy but it was entirely a PICNIC one (Problem in Chair, Not in Computer...)</p>
  <p>This was the issue and it must have been an accidental click somehere along the line:</p>
  <p><a href="https://i.sstatic.net/9lgFH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9lgFH.png" alt="enter image description here" /></a></p>
  <p>I do not know how it got checked on and it must have been me (!), but it was a real gotcha...  Unchecked and all tokens works...</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-10T16:47:09.590Z
Answers.LastActivityDate: 2023-11-10T16:47:09.590Z
Answers.UserDisplayName: ChumKui
Body: <p>I have converted a simple create contact form from Drupal 7 to Drupal 9.</p>
  <p>In the Drupal 7 form, the confirmation would display a button with a link to the newly created contact like so:</p>
  <pre><code>&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;font-family:Trebuchet MS,Helvetica,sans-serif&quot;&gt;&lt;a href=&quot;/civicrm/contact/view?reset=1&amp;cid=[submission:contact-id:2]&quot; style=&quot;background:#792258; text-decoration: none; padding: 10px 25px; color: #ffffff; border-radius: 4px; display:inline-block; ;text-underline-color:#ff3884&quot;&gt;VIEW YOUR CONTACT&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
  </code></pre>
  <p>So for Drupal 7, I am using the <code>[submission:contact-id:2]</code> token to insert the contact ID and all is fine.</p>
  <p>I cannot get this to work in Drupal 9? It just prints [webform_submission:contact-id:2].  Other tokens do seem to work (see below). It is not the old gotcha because it is in a fieldset, it's all one simple hierarchy of six fields.</p>
  <pre><code>[webform_submission:values:contact-id:2]
  </code></pre>
  <p>Will just print as typed above and not show the newly created ID in the confirmation message. I have found a work around  - add the contact ID field for the new contact to the form (it's hidden so OK), so using:</p>
  <pre><code>[webform_submission:values:civicrm_2_contact_1_contact_contact_id]
  </code></pre>
  <p>Works and outputs the correct newly created ID</p>
  <p>This also works:</p>
  <pre><code>[webform_submission:contact-link:2]
  </code></pre>
  <p>outputs a full link to the new contact.</p>
  <p>I am wondering if this is a bug to report or I'm missing some other integration or setting?</p>
  
Tags: <webform-civicrm><tokens>
Title: Webform submission token not displaying in confirmation
ThreadText: # Webform submission token not displaying in confirmation
  
  (Asked by: username_0 on 2023-10-12)
  
  I have converted a simple create contact form from Drupal 7 to Drupal 9.
  In the Drupal 7 form, the confirmation would display a button with a link to the newly created contact like so:
  VIEW YOUR CONTACT
  
  So for Drupal 7, I am using the [submission:contact-id:2] token to insert the contact ID and all is fine.
  I cannot get this to work in Drupal 9? It just prints [webform_submission:contact-id:2].  Other tokens do seem to work (see below). It is not the old gotcha because it is in a fieldset, it's all one simple hierarchy of six fields.
  [webform_submission:values:contact-id:2]
  
  Will just print as typed above and not show the newly created ID in the confirmation message. I have found a work around  - add the contact ID field for the new contact to the form (it's hidden so OK), so using:
  [webform_submission:values:civicrm_2_contact_1_contact_contact_id]
  
  Works and outputs the correct newly created ID
  This also works:
  [webform_submission:contact-link:2]
  
  outputs a full link to the new contact.
  I am wondering if this is a bug to report or I'm missing some other integration or setting?
  
  **Tags:** webform-civicrm, tokens
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-11-10. Score: 1
  
  OK - this has driven me crazy but it was entirely a PICNIC one (Problem in Chair, Not in Computer...)
  
  This was the issue and it must have been an accidental click somehere along the line:
  
  [![enter image description here](https://i.sstatic.net/9lgFH.png)](https://i.sstatic.net/9lgFH.png)
  
  I do not know how it got checked on and it must have been me (!), but it was a real gotcha... Unchecked and all tokens works...
  
  
  ---
  
  