Answers.Body: <p>&quot;I'd like the existing contact name that's selected to be stored in the new contact records, in a custom field&quot; -&gt;</p>
  <p>Quick solution and better from a data point of view -&gt; use Relationships.</p>
  <p>That way you can not only see who has nominated a child for a present but also get a list of all kids nominated by a certain contact.</p>
  <p>Cool project!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-19T16:15:22.283Z
Answers.Text: We do use relationships & we can see who has nominated the child using the UI. The difficulty is putting this info in the contact record of the child for when we download them to make labels. However I just realised that when we export the records we can export the other side of the relationship so we can get the info needed.  So thanks for jogging my little grey cells on this!
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-19T17:41:22.980Z
Answers.Text: Great- glad that helped you out!
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-19T15:20:06.717Z
Answers.LastActivityDate: 2020-10-19T15:20:06.717Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I have a webform with an existing contact, which is normally prefilled but can be changed with autoselect, then up to 5 new contacts. The existing contact can then enter up to 5 new contacts. By the way, the existing contact is a person who is nominating children for Christmas presents!  It all works well, however I'd like the existing contact name that's selected to be stored in the new contact records, in a custom field (so we can quickly see who added the record). I've not found a way to do this, so have tried to default it from the token [current-user:civicrm-contact]. This doesn't work, and also saw <a href="https://civicrm.stackexchange.com/questions/9296/tokens-in-civicrm-webform-not-showing-contact">this</a> from 2016 but that didn't work. Any ideas on how to fix this, or any alternative methods? Civi is at 5.28.3 and of course it's Drupal 7.</p>
  
Tags: <webform-civicrm>
Title: Webform contact default token doesn't work - why?
ThreadText: # Webform contact default token doesn't work - why?
  
  (Asked by: username_0 on 2020-10-19)
  
  I have a webform with an existing contact, which is normally prefilled but can be changed with autoselect, then up to 5 new contacts. The existing contact can then enter up to 5 new contacts. By the way, the existing contact is a person who is nominating children for Christmas presents! It all works well, however I'd like the existing contact name that's selected to be stored in the new contact records, in a custom field (so we can quickly see who added the record). I've not found a way to do this, so have tried to default it from the token [current-user:civicrm-contact]. This doesn't work, and also saw [this](https://civicrm.stackexchange.com/questions/9296/tokens-in-civicrm-webform-not-showing-contact) from 2016 but that didn't work. Any ideas on how to fix this, or any alternative methods? Civi is at 5.28.3 and of course it's Drupal 7.
  
  **Tags:** webform-civicrm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-10-19. Score: 1 | Accepted answer
  
  "I'd like the existing contact name that's selected to be stored in the new contact records, in a custom field" ->
  
  Quick solution and better from a data point of view -> use Relationships.
  
  That way you can not only see who has nominated a child for a present but also get a list of all kids nominated by a certain contact.
  
  Cool project!
  
  > **Comments:**
  > **username_0**: We do use relationships & we can see who has nominated the child using the UI. The difficulty is putting this info in the contact record of the child for when we download them to make labels. However I just realised that when we export the records we can export the other side of the relationship so we can get the info needed.  So thanks for jogging my little grey cells on this!  
  > **username_1**: Great- glad that helped you out!  
  
  ---
  
  