Answers.Body: <p>Can you please check if Adams, Lou is saved in custom field for any contact in your system? The profile search that you have created will list all the contacts having Adams, Lou saved in their respective custom field. </p>
  
  <p>I guess you trying to create a profile search that will list details of a contact by selecting contact from a drop down. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-11T14:07:56.217Z
Answers.Text: Yes I do want to create a profile search that will list details of a contact by selecting contact from a drop down. If I don't enter anything in the search fields, all the contacts in the database are listed
Answers.UserDisplayName: LesleyJill
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-11T14:21:16.847Z
Answers.Text: Nothing to do with Lou Adams - select any contact from the drop down and it's "no matches Found"
Answers.UserDisplayName: LesleyJill
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-11T15:10:52.273Z
Answers.Text: Its a contact reference custom field for a contact and NOT actual contact reference field. Definitely when you dont enter anything it means no criteria is being applied and it will show all results. To make you understand more try updating a contact and have the custom field set to different contact and then perform profile search. You should get results
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-11T22:11:54.940Z
Answers.Text: Now I understand! Thank you very much Pradeep. So is there anyway to achieve a profile search that will list details of a contact by selecting contact from a drop down?
Answers.UserDisplayName: LesleyJill
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-12T04:13:02.687Z
Answers.Text: Can you please mark my answer as answered and vote if you feel i was very useful?
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-11T03:13:57.200Z
Answers.LastActivityDate: 2018-01-11T03:13:57.200Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Duplicated on Wp and Drupal Demo sites
  Custom field of type contact reference used in front end profile for search and listings (public)
  Search returns “no matches found” even though contact name appears in field
  Logged in as admin
  <a href="https://i.sstatic.net/yG5l0.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/yG5l0.png" alt="enter image description here"></a></p>
  
  <p>Entering nothing in search fields and pressing search lists all contacts in database. I don't get why a single contact from the contact reference field is "no match"
  <a href="https://i.sstatic.net/zPFUb.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zPFUb.jpg" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-11T09:34:34.487Z
Comments.Text: Just tried reproducing on http://dmaster.demo.civicrm.org - Advanced Search works correctly finding by contact ref.  Please describe in more detail how you are searching.
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-11T13:43:33.153Z
Comments.Text: It's nothing to do with advanced search it's a front end profile.  This is the url - logged in as admin on wordpress demo site http://wpmaster.demo.civicrm.org/civicrm?page=CiviCRM&q=civicrm/profile&gid=16&reset=1
Comments.UserDisplayName: LesleyJill
Tags: <profile>
Title: No matches found for contact reference field in front end profile
ThreadText: # No matches found for contact reference field in front end profile
  
  (Asked by: username_0 on 2018-01-10)
  
  Duplicated on Wp and Drupal Demo sites
  Custom field of type contact reference used in front end profile for search and listings (public)
  Search returns “no matches found” even though contact name appears in field
  Logged in as admin
  [![enter image description here](https://i.sstatic.net/yG5l0.png)](https://i.sstatic.net/yG5l0.png)
  
  Entering nothing in search fields and pressing search lists all contacts in database. I don't get why a single contact from the contact reference field is "no match"
  [![enter image description here](https://i.sstatic.net/zPFUb.jpg)](https://i.sstatic.net/zPFUb.jpg)
  
  **Tags:** profile
  
  > **Comments:**
  > **username_1**: Just tried reproducing on http://dmaster.demo.civicrm.org - Advanced Search works correctly finding by contact ref.  Please describe in more detail how you are searching.  
  > **username_0**: It's nothing to do with advanced search it's a front end profile.  This is the url - logged in as admin on wordpress demo site http://wpmaster.demo.civicrm.org/civicrm?page=CiviCRM&q=civicrm/profile&gid=16&reset=1  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-01-11. Score: 1 | Accepted answer
  
  Can you please check if Adams, Lou is saved in custom field for any contact in your system? The profile search that you have created will list all the contacts having Adams, Lou saved in their respective custom field.
  
  I guess you trying to create a profile search that will list details of a contact by selecting contact from a drop down.
  
  > **Comments:**
  > **username_0**: Yes I do want to create a profile search that will list details of a contact by selecting contact from a drop down. If I don't enter anything in the search fields, all the contacts in the database are listed  
  > **username_0**: Nothing to do with Lou Adams - select any contact from the drop down and it's "no matches Found"  
  > **username_2**: Its a contact reference custom field for a contact and NOT actual contact reference field. Definitely when you dont enter anything it means no criteria is being applied and it will show all results. To make you understand more try updating a contact and have the custom field set to different contact and then perform profile search. You should get results  
  > **username_0**: Now I understand! Thank you very much Pradeep. So is there anyway to achieve a profile search that will list details of a contact by selecting contact from a drop down?  
  > **username_2**: Can you please mark my answer as answered and vote if you feel i was very useful?  
  
  ---
  
  