> For the complete documentation index, see [llms.txt](https://script-and-theory.gitbook.io/all-in-one-commerce-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://script-and-theory.gitbook.io/all-in-one-commerce-docs/checkout-blocks/blocks/custom-checkout-fields.md).

# Custom Checkout Fields

**Description:**

The Custom Checkout Fields block allows you to add additional fields to the checkout form, enabling you to collect extra information from customers, such as special instructions, delivery preferences, or custom messages. This feature helps businesses gather essential details to enhance the checkout experience.

**How to Use:**

* Create a New Block:<br>

  <figure><img src="/files/E13JH9WrcjpSGvLZStax" alt=""><figcaption></figcaption></figure>
* In the app, navigate to the Blocks section.
* Create a new Custom Checkout Fields Options block.<br>

  <figure><img src="/files/AwKDqdXZ0cAIPfB6x1hX" alt=""><figcaption></figcaption></figure>
* The system will generate a unique Block ID for this block.<br>

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

**How to Enable:**

* Go to the Blocks section in the app settings. Copy the created checkout Upsell block to generated Block ID.<br>

  <figure><img src="/files/vyclvJObmQ2XcdlFYZhq" alt=""><figcaption></figcaption></figure>
* Go into the store customizer<br>

  <figure><img src="/files/E2gBZqfOCit9Uw68d3Rs" alt=""><figcaption></figcaption></figure>
* Then you need to "add app block" and search extension "Checkout fields, Gift, and Address validation" and add it. Click to added extension block and enter the Block ID in the block settings and save the configuration.. **Check Screenshot**<br>

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

  <figure><img src="/files/B6vwHJG4Fuk9da4ms1OJ" alt=""><figcaption></figcaption></figure>
* Set the location where the Custom Checkout Fields should appear on the checkout page.


---

# 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://script-and-theory.gitbook.io/all-in-one-commerce-docs/checkout-blocks/blocks/custom-checkout-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.
