# Formatted Address

## **Building Your Formatted Address**

The Avonni Formatted Address component simplifies address entry and display within your Dynamic Components. It automatically formats addresses, validates user input, and can even show the location on a map.

### **1. Connect to Your Salesforce Fields**

* **Map the component's attributes to the corresponding fields in your Salesforce object:**
  * **Label:** Provide a clear label for the address field.
  * **Street, City, Province, Postal Code, Country:** Map these attributes to the corresponding address fields in your Salesforce object.
  * **Latitude and Longitude (Optional):** If you have separate fields for latitude and longitude, map them to improve map accuracy.
  * **Locale:** Set the locale to match your desired address formatting and language preferences.

### **2. Configure Display Options**

* **Customize how the address is displayed:**
  * **Read-only:** Make the address display-only if you don't want users to edit it.
  * **Display a Map:** Show a static map of the entered address.


---

# 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.avonnicomponents.com/dynamic-components/components/formatted-address.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.
