Answers.Body: <p>This is not exactly what you describe but may suit your purposes or at least give you something to go on.</p>
  
  <ol>
  <li><p>In the CiviCRM tab of the webform builder, enable CiviCRM processing. For Contact 1, tick Existing Contact and a few other fields (try including some address fields for example). </p></li>
  <li><p>Go to the Webform tab and click Edit next to the Existing Contact component. Set it to Autocomplete and then in the Contact Display Fields box, use Cntrl-Click to add a bunch of fields that match the ones you picked on the CiviCRM tab.</p></li>
  </ol>
  
  <p>Go to View and now you should find that it works kind of like you describe. Start typing in the box and contacts should appear with First Name, Last name and email all in the box and when you pick one the other fields should populate.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-09T18:02:32.297Z
Answers.LastActivityDate: 2016-11-09T18:02:32.297Z
Answers.UserDisplayName: naomi
Body: <p>I want to use 3 fields (name, surname, phone number) to search existing contact and then autofill other fields.
  I don't find how to specify how to map the CiviCRM field to search, nor how to define 3 fields used to search.</p>
  
  <p>Is it possible? And how ?</p>
  
  <p>Thank you for your help.</p>
  
  <p>Regards.</p>
  
  <p>Olivier.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-09T00:47:40.817Z
Comments.Text: Can you shed a bit more light on what you have tried. Based on your question I am unclear and hence hard to provide useful answer.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-09T09:14:12.613Z
Comments.Text: If you want to provide some sort of search functionality then perhaps using a Drupal View might be a better option.
Comments.UserDisplayName: Graham
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-13T15:20:28.420Z
Comments.Text: @Graham that would make a good answer.
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-15T20:47:20.613Z
Comments.Text: The goal is to allow event registration to known user, without using password and authentication. In the standard Civicrm/Webform integration, autofilling is based on the only Existing contact component using firsname and lastname. So the user must be identified, or any user can see all Civicrm contact. To allow known user to take advantage to autofilling, and not allow anyone to get all contact information, I want to add another field to identify the user.
Comments.UserDisplayName: olivier
Tags: <drupal><webform-civicrm>
Title: CiviCRM Webform : Select field used to use autofill
ThreadText: # CiviCRM Webform : Select field used to use autofill
  
  (Asked by: username_0 on 2016-11-08)
  
  I want to use 3 fields (name, surname, phone number) to search existing contact and then autofill other fields.
  I don't find how to specify how to map the CiviCRM field to search, nor how to define 3 fields used to search.
  
  Is it possible? And how ?
  
  Thank you for your help.
  
  Regards.
  
  Olivier.
  
  **Tags:** drupal, webform-civicrm
  
  > **Comments:**
  > **username_1**: Can you shed a bit more light on what you have tried. Based on your question I am unclear and hence hard to provide useful answer.  
  > **username_2**: If you want to provide some sort of search functionality then perhaps using a Drupal View might be a better option.  
  > **username_3**: @username_2 that would make a good answer.  
  > **username_0**: The goal is to allow event registration to known user, without using password and authentication. In the standard Civicrm/Webform integration, autofilling is based on the only Existing contact component using firsname and lastname. So the user must be identified, or any user can see all Civicrm contact. To allow known user to take advantage to autofilling, and not allow anyone to get all contact information, I want to add another field to identify the user.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2016-11-09. Score: 2
  
  This is not exactly what you describe but may suit your purposes or at least give you something to go on.
  
  1. In the CiviCRM tab of the webform builder, enable CiviCRM processing. For Contact 1, tick Existing Contact and a few other fields (try including some address fields for example).
  2. Go to the Webform tab and click Edit next to the Existing Contact component. Set it to Autocomplete and then in the Contact Display Fields box, use Cntrl-Click to add a bunch of fields that match the ones you picked on the CiviCRM tab.
  
  Go to View and now you should find that it works kind of like you describe. Start typing in the box and contacts should appear with First Name, Last name and email all in the box and when you pick one the other fields should populate.
  
  
  ---
  
  