# Auto search on the Lookup field

Hi all, \
How are you? :heart\_eyes:

This week, my client asked me about the data searching on a **Lookup field.** \
The system's current behavior is so confusing when they press on the area lookup fields which show almost recent records first, then they click on the icon <img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2Ff2hGDo3rTTgD5aqecmRg%2Fimage.png?alt=media&#x26;token=137fe31c-f91b-4ad7-bb8d-319cd42a035e" alt="" data-size="line"> and can get an available record list.

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FkrGjKMv2eXysdrakG6QC%2FLookup_Contact_with_Recent_Record.png?alt=media&#x26;token=6b3c6625-8174-4cf1-a7ae-be7c4db4e2be" alt=""><figcaption><p>Example: Contact field whit recent records</p></figcaption></figure>

## Turn off recent record

So, I already disabled showing recent records on this lookup field as below.

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FOuO5Ev5c5MnTYMJmrwts%2FDisable_Recent_Record_on_Lookup_field.png?alt=media&#x26;token=a19a305c-716b-4eaa-be70-a95c83786e80" alt=""><figcaption><p>Disable recent record on "Contact" lookup field</p></figcaption></figure>

And return to my app and check...&#x20;

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FmVgJHqsF27Oz5rNsjlMC%2FLookup_without_recent_record.png?alt=media&#x26;token=76319270-b88c-43ae-9e7b-60fe15f3b3ad" alt=""><figcaption><p>Recent record have been disabled</p></figcaption></figure>

The recent records have been disabled. However, my client is still facing another confusing behavior with nothing to be shown when pressing on on lookup field (as about the image).\
Even, though they did type a character into this field but nothing to be shown either.

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FDxuxwQdQ9WUEazWlWzn7%2FType_Character_nothing_shown.png?alt=media&#x26;token=4d197086-35e7-4a93-91ad-15abfbc1053e" alt=""><figcaption><p>Nothing with a charater</p></figcaption></figure>

Very very confused... :disappointed\_relieved:

## Configure Lookup field behavior

... And I found one configuration in the **Power Platform Admin Center: &#x20;*****Environment > Setting > Behavior.***

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FDTIeRVS5ocwxrp5YLqGi%2FSetting_Lookup_Behavior.png?alt=media&#x26;token=041985dd-a202-4993-aeb8-2071d2b06269" alt=""><figcaption><p>Lookup Behavior Configuration</p></figcaption></figure>

You should input 2 values and I did input minimum value also:

* *Minimum number of characters to trigger typeahead search: **1***
* *Delay between character inputs that will trigger a search: **250***

## Checking after configuring

On my Lead form, at the **Contact** lookup field, I type the **"T"** character and check...

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FxGzdI2GtFPSn6k4Bnp1y%2FType_Character_record_shown.png?alt=media&#x26;token=4df57ee6-00e3-42c9-a688-0146d4fd8cde" alt=""><figcaption><p>Typing "T" character and auto searching</p></figcaption></figure>

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FgzTiXBvLDYsfVNpsxrQi%2Fimage.png?alt=media&#x26;token=7a1aff5e-313e-412a-accd-5df84a07f22b" alt=""><figcaption><p>Typing "H" character and auto searching</p></figcaption></figure>

Happy and happy... :tada::clap:

**\[NTD]yns.asia**\ <mark style="color:red;">...</mark>[<mark style="color:red;">invite me a cup.</mark>](https://ko-fi.com/ntdyns/?ref=qr\&amp;v=2) :coffee: Thank you. :heart:
