> For the complete documentation index, see [llms.txt](https://help.smallbuilder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](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).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` 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>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
