> For the complete documentation index, see [llms.txt](https://doc.simax.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.simax.fr/utiliser-simax/les-champs/champs-code-postal-et-ville.md).

# Champs code postal et ville

Les champs avec modèle Code Postal et Ville sont liés automatiquement s'ils sont l'un après l'autre dans la liste des colonnes.

&#x20;

\- Lors d'une sélection d'une ville le code postal est rempli par celui de la ville.

&#x20;

\- Si une seule ville correspond au code postal saisi alors elle est sélectionnée automatiquement à la sortie du champ (touche tabulation ou clic en dehors du champ).

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2F2JygMlTHxPDX4PMO1RLy%2FCode%20postal.png?alt=media&amp;token=832e4eec-e979-4496-837d-2e72f4b6af90" alt=""><figcaption></figcaption></figure>

* Si plusieurs villes correspondent au code postal, la liste des propositions est affichée :

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FOKhVper9MT0JytMD9BRR%2FParis.png?alt=media&amp;token=14efc8cd-4397-4646-b743-c527680ded15" alt=""><figcaption></figcaption></figure>

* La liste des villes proposées reprend les villes dont le code postal commence par le code postal saisi :

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FAIOWdcPUpTE0jvozxMUN%2FVile.png?alt=media&amp;token=faed4bec-3996-4996-8c62-e23fff552f34" alt=""><figcaption></figcaption></figure>

\- Lorsque la ville est modifiée, le code postal est changé automatiquement par le code postal correspondant à la nouvelle ville.

&#x20;

\- Lorsque le code postal est changé, la ville (si elle unique) est changée automatiquement par la ville correspondant au nouveau code postal.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.simax.fr/utiliser-simax/les-champs/champs-code-postal-et-ville.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
