# Block Lookup Selector

If you want to skip the lookup selector and directly transition to the Line Item Editor, activate the Block Lookup Selector feature. Additionally, you can block the lookup selector based on specific conditions.

To set blocking conditions, use a specific field from the parent object as the control field. This field must be of the Boolean type, and if the value is true, the lookup selector will be blocked.

<figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2FqPoZULabec2H2oWwOzSU%2FLookupBlock.png?alt=media&#x26;token=9cb5b44a-415c-4665-86c1-53c7bc399a91" alt=""><figcaption></figcaption></figure>

### Example: Blocking Product Addtion for Renewed Opportunities

{% hint style="info" %}
This example demonstrates the configuration of a Line Item Editor for Opportunity Products:

* **Parent:** Opportunity
* **Line Item:** OpportunityLineItem
* **Lookup:** PricebookEntry
  {% endhint %}

In the Line Item Editor, product addition (line item addition) is blocked for renewed opportunities. In this example, the `IsRenewed__c` field in the Opportunity object is used to define the blocking condition.

<figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2FYcToXQMmj1pElzCq01aN%2FLookupBlock_ex.png?alt=media&#x26;token=5a08be2b-22c9-490d-9d85-8f1ebd25c3b3" alt=""><figcaption></figcaption></figure>

When the `IsRenewed__c` field is set to true, the button to transition to the lookup selector screen will not be displayed in the editor.

<div><figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2FimRspk1DeOTqpYqixblp%2FBlock_ex.png?alt=media&#x26;token=7eccad50-6df4-488b-a182-7bad416063bb" alt=""><figcaption></figcaption></figure> <figure><img src="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2F2IEtNNgru6xlt5UqqoJz%2FLookup_block_Ex02.png?alt=media&#x26;token=1626e40e-1723-4cf7-8342-7290ef784d92" alt=""><figcaption></figcaption></figure></div>
