Answers.Body: <p>Yes, it can be done with webforms. 
  Select a 2nd contact in the <em>CiviCRM tab</em>, check <strong>Existing Contact</strong> and add any other fields that you want to expose on the form (including the custom info). Click <strong>Save Settings</strong>.</p>
  
  <p>Go to the Webform tab and click on the field that was created for the Existing Contact. There you can set the autocomplete option for the Form Widget (in the <strong>Display</strong> area):
  <img src="https://i.sstatic.net/MmYvs.jpg" alt="Form Widget: Autocomplete"></p>
  
  <p>Take note of the permissions setting in the <strong>Filters</strong> area as well so you don't end up exposing a lot of personal information unintentionally.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-20T21:29:34.160Z
Answers.Text: Thanks, I played around with this and in fact you need add only one 'existing' contact and that contact can be configured for auto-completion. And that, in turn, can handle adding new contacts.
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-16T18:26:04.160Z
Answers.LastActivityDate: 2015-04-17T02:28:05.200Z
Answers.LastEditDate: 2015-04-17T02:28:05.200Z
Answers.UserDisplayName: Catorghans
Body: <p>I want to provide a screen for users to add some information about contacts (including custom info). Some of the contacts will be existing contacts, but some will be new. An autocomplete box would be ideal, similar to that used for creating a new contribution.  It doesn't appear that this is possible for profiles.  Can it be done with Webform-CiviCRM?  I am using Drupal.</p>
  
Tags: <drupal><profile><webform-civicrm>
Title: Can I use autocomplete to add users in a webform (they might be existing contacts)?
ThreadText: # Can I use autocomplete to add users in a webform (they might be existing contacts)?
  
  (Asked by: username_0 on 2015-04-16)
  
  I want to provide a screen for users to add some information about contacts (including custom info). Some of the contacts will be existing contacts, but some will be new. An autocomplete box would be ideal, similar to that used for creating a new contribution. It doesn't appear that this is possible for profiles. Can it be done with Webform-CiviCRM? I am using Drupal.
  
  **Tags:** drupal, profile, webform-civicrm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-04-16. Score: 6
  
  Yes, it can be done with webforms.
  Select a 2nd contact in the *CiviCRM tab*, check **Existing Contact** and add any other fields that you want to expose on the form (including the custom info). Click **Save Settings**.
  
  Go to the Webform tab and click on the field that was created for the Existing Contact. There you can set the autocomplete option for the Form Widget (in the **Display** area):
  ![Form Widget: Autocomplete](https://i.sstatic.net/MmYvs.jpg)
  
  Take note of the permissions setting in the **Filters** area as well so you don't end up exposing a lot of personal information unintentionally.
  
  > **Comments:**
  > **username_0**: Thanks, I played around with this and in fact you need add only one 'existing' contact and that contact can be configured for auto-completion. And that, in turn, can handle adding new contacts.  
  
  ---
  
  