# 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="/files/SeIjpdIqR8MVd0F7AHK1" 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="/files/6n2we6LXsGGacEbHqwcX" 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="/files/D4cNoz4PDHQzgti8rWHD" alt=""><figcaption></figcaption></figure> <figure><img src="/files/C19LXaOcvT5OIex8mpGQ" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.smallbuilder.com/smallbuilder-line-items/builder/builder-setup-steps/relate-objects/lookup-object/block-lookup-selector.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
