Body: <p>Scenario. I have a field set made up of 3 Contact Reference fields, eg c1, c2, c3.</p>
  
  <p>I have a webform with 4 contacts, cid1 is current user, cid2 etc are set as Static Fields and I was hoping they would show the contacts already referenced for cid1.</p>
  
  <p>On cid1 i have the custom fields set to show, and for cid2 it is set to show c1, etc</p>
  
  <p>The form remains blank.</p>
  
  <p>My test contact did not have a c3 set. So i found a name (component was set to autocomplete) and I submitted the form with c1 and c2 showing as empty (ie existing contact reference contacts were not loading).</p>
  
  <p>Outcome was a c3 was added to my record. So that last bit works fine. </p>
  
  <p>Should the fields load with existing data if there is some? Have i set something up wrongly?</p>
  
  <p>Happy to add screenshots etc if that helps others follow.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-21T12:08:27.407Z
Comments.Text: Hey Pete - yes please add some screenshots - happy to see if I can help think this one through!
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-21T12:19:40.257Z
Comments.Text: PS - not sure if it's possible - but I'd like to find out too
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-21T14:17:50.267Z
Comments.Text: Where is the link to the webform coming from? From within Civi, or from within Drupal? If from within Drupal, is the link being generated by a view or some other means of controlling the link?
Comments.UserDisplayName: Allen Hutchison
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-21T16:54:01.677Z
Comments.Text: Related question: http://civicrm.stackexchange.com/questions/9195/allowing-a-contact-to-update-their-related-contacts-via-webform-civicrm?lq=1
Comments.UserDisplayName: Allen Hutchison
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-21T19:29:46.817Z
Comments.Text: THanks both. I will update my question to try and clarify but i don't think the latter is related as that is dealing with 'related' contacts, and I am talking about 'contact reference' (though I may yet change to a relationship)
Comments.UserDisplayName: petednz - fuzion
Tags: <webform-civicrm><contact-reference>
Title: Can a Contact Reference field be utilised on a Webform such that the contacts pre-load on the form
ThreadText: # Can a Contact Reference field be utilised on a Webform such that the contacts pre-load on the form
  
  (Asked by: username_0 on 2016-06-21)
  
  Scenario. I have a field set made up of 3 Contact Reference fields, eg c1, c2, c3.
  
  I have a webform with 4 contacts, cid1 is current user, cid2 etc are set as Static Fields and I was hoping they would show the contacts already referenced for cid1.
  
  On cid1 i have the custom fields set to show, and for cid2 it is set to show c1, etc
  
  The form remains blank.
  
  My test contact did not have a c3 set. So i found a name (component was set to autocomplete) and I submitted the form with c1 and c2 showing as empty (ie existing contact reference contacts were not loading).
  
  Outcome was a c3 was added to my record. So that last bit works fine.
  
  Should the fields load with existing data if there is some? Have i set something up wrongly?
  
  Happy to add screenshots etc if that helps others follow.
  
  **Tags:** webform-civicrm, contact-reference
  
  > **Comments:**
  > **username_1**: Hey Pete - yes please add some screenshots - happy to see if I can help think this one through!  
  > **username_1**: PS - not sure if it's possible - but I'd like to find out too  
  > **username_2**: Where is the link to the webform coming from? From within Civi, or from within Drupal? If from within Drupal, is the link being generated by a view or some other means of controlling the link?  
  > **username_2**: Related question: http://civicrm.stackexchange.com/questions/9195/allowing-a-contact-to-update-their-related-contacts-via-webform-civicrm?lq=1  
  > **username_0**: THanks both. I will update my question to try and clarify but i don't think the latter is related as that is dealing with 'related' contacts, and I am talking about 'contact reference' (though I may yet change to a relationship)  
  
  ---
  
  ## 0 answers
  
  