# Source Field: Assigning Default Values from Parent or Lookup Fields

When adding Line Items, you can assign specific field values from the Parent Object or Lookup Object as default values.

{% hint style="warning" %}
Source field values are only assigned **when a Line Item is added for the first time.**
{% endhint %}

<figure><img src="/files/TNMs5g7xQs2xdPKPDJUH" alt=""><figcaption></figcaption></figure>

### Example: Assigning Unit Price from PricebookEntry as Default Value for Opportunity Products

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

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

When adding Opportunity Products, assign the selected product’s Unit Price as the default value for the Unit Price field in the Line Item.

The Line Item includes both List Price and Unit Price fields. These fields will be populated with values from the Unit Price field in the Lookup Object (PricebookEntry).

#### Configuration Steps

1. In the source field setting for List Price and Unit Price, select Lookup as the first option.
2. For the second option, select Unit Price.

<figure><img src="/files/u2uPtVmyLtVpfCXdEUrJ" alt=""><figcaption></figcaption></figure>

#### Result

The selected products’ Unit Price is assigned as the default value to the List Price and Unit Price fields in the Line Item.

<figure><img src="/files/hKmZegeCS9H2ltH3QnOX" alt=""><figcaption><p>Lookup Selector</p></figcaption></figure>

<figure><img src="/files/SjplKua3nV5vVUCYZYpT" alt=""><figcaption><p>Line Item Editor</p></figcaption></figure>


---

# 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/setup-line-item-editor/source-field-assigning-default-values-from-parent-or-lookup-fields.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.
