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