> 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="/files/q2uzbQKEl1mq30u8KuU0" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/9HXwzikiYROhBIPtlPwd" 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="/files/CVkVS6VJqcfbEzQgnh4g" 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 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://doc.simax.fr/utiliser-simax/les-champs/champs-code-postal-et-ville.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.
