> For the complete documentation index, see [llms.txt](https://order-editing.gitbook.io/oe-help-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://order-editing.gitbook.io/oe-help-book/new-address-validation/create-real-time-validation-rules.md).

# Create Real-time Validation Rules

Create custom messages which are displayed to your customers on the Checkout page based on conditions set (runs instantly as customers type).

<figure><img src="/files/86K23V8RSiSimMcs1CEo" alt=""><figcaption></figcaption></figure>

#### Creating a Rule

1. Go to **Address Validation** > **Real-time Validation Rules**
2. Click **Create validation**
3. Configure:
   * **Name:** What the rule does (e.g., "High Value Warning")
   * **Display Message:** What customers see
   * **Alert Type:** Informative (blue), Warning (yellow), or Error (red)
4. Add triggers (minimum 2):
   * **Shipping Country:** is/is not specific countries
   * **Order Total:** equal/greater than/less than amount
5. Set trigger logic:
   * **All must match:** AND logic
   * **Any can match:** OR logic
6. Click **Publish**

**Example rule:**

* Trigger 1: Order total > $500
* Trigger 2: Country is "United States"
* Logic: All must match
* Message: "Orders over $500 require address verification. Please double-check your address."

***

<a href="/pages/ojItXin5FBRZSe3NGsM1" class="button primary">How to turn on Address Validation</a> <a href="/pages/ROGZA28WlO6vplzPHl3A" class="button primary">I have a question</a>


---

# 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://order-editing.gitbook.io/oe-help-book/new-address-validation/create-real-time-validation-rules.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.
