Body: <p>Im using CiviCRM 5.13.1 and Webform CiviCRM 7.x-4.26.</p>
  
  <p>Im adding 2 individual contacts to the form. I want them both to be populated by cids.</p>
  
  <p>But when I add them, contact one is fine. I can set to static and populate by CID1.</p>
  
  <p>But contact 2 is automatically set to autocomplete. I cannot change it. Even when I save it without change I get a</p>
  
  <blockquote>
    <p>An illegal choice has been detected. Please contact the site
    administrator.</p>
  </blockquote>
  
  <p>When I look at the Drupal log I see</p>
  
  <blockquote>
    <p>Illegal choice in Specify Relationship(s) element.</p>
  </blockquote>
  
  <p>Anyone help??</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-08T11:29:57.750Z
Comments.Text: Apols all. I did a lot of messing around with relationships which broke a few things. Clearing the CiviCRM cache worked for me.
Comments.UserDisplayName: Tony Horrocks
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-08T12:05:58.740Z
Comments.Text: No problem - can you perhaps add some screenshot - example of what you have working so that others can see how you did this?
Comments.UserDisplayName: KarinG - Semper IT
Tags: <webform-civicrm>
Title: Adding 2 contacts (both populated with ?cid in the URL) to a webform is creating an error
ThreadText: # Adding 2 contacts (both populated with ?cid in the URL) to a webform is creating an error
  
  (Asked by: username_0 on 2019-05-08)
  
  Im using CiviCRM 5.13.1 and Webform CiviCRM 7.x-4.26.
  
  Im adding 2 individual contacts to the form. I want them both to be populated by cids.
  
  But when I add them, contact one is fine. I can set to static and populate by CID1.
  
  But contact 2 is automatically set to autocomplete. I cannot change it. Even when I save it without change I get a
  
  > An illegal choice has been detected. Please contact the site
  > administrator.
  
  When I look at the Drupal log I see
  
  > Illegal choice in Specify Relationship(s) element.
  
  Anyone help??
  
  **Tags:** webform-civicrm
  
  > **Comments:**
  > **username_0**: Apols all. I did a lot of messing around with relationships which broke a few things. Clearing the CiviCRM cache worked for me.  
  > **username_1**: No problem - can you perhaps add some screenshot - example of what you have working so that others can see how you did this?  
  
  ---
  
  ## 0 answers
  
  