# Addresses

## Overview

The **Limio Address Form** Lightning Web Component (`flowAddress`) is designed for use in Salesforce Flows, offering a configurable interface for address input. A key feature is the **Input: Mandatory fields** property, which defines which fields must be completed for validation.

## Property Configuration

* **API Name:** `requiredFields`
* **Type:** `String` (comma-separated, case-sensitive)
* **Label:** Input: Mandatory fields
* **Allowed values:** `country`, `postalCode`, `province`, `city`, `street`
* **Example:** `country,postalCode,city`

Enter field names as a comma-separated list to specify which fields are required. These are case-sensitive and must not include spaces.

***

## Behavior & Validation

### Field Enforcement

The component:

* Parses `requiredFields` into an internal array.
* Validates that all specified fields are completed.
* Displays error messages listing any missing values.
* Blocks navigation to the next screen in the Flow if validation fails.

### Region-Specific Logic

If the country is set to `US` or `CA`, the component **automatically adds** `country`, `postalCode`, and `province` to the required list—ensuring compliance with regional standards.

### Dynamic Updates

The required fields list updates in real time when the country value changes to `US` or `CA`.

***

## Best Practices

* ✅ Use only valid field names: `country`, `postalCode`, `province`, `city`, `street`.
* 🧠 Field names are **case-sensitive**.
* 🚫 Do not include spaces between field names.

***

## Summary

The `requiredFields` property in the Limio Address Form LWC enables Flow admins to enforce address data requirements. It provides flexible validation logic and automatically handles country-specific requirements for the US and Canada.


---

# 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://docs.limio.com/integrations/using-limio-for-salesforce/address-mandatory-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.
