# Зависимые поля

Зависмие поля, это поля, котрые отображаются для обязательного заполнения, после выбора конкретной доставки (`div.delivery_filed`)

Поля настраиваются в элемент доставки при ее редактировании, выбор осуществляется поиском при вводе названия или названия поля в базе mysql, возможно добавления доп. свойств

<div data-full-width="true"><figure><img src="/files/Gi9hz4v3TPHFab4wdSg9" alt=""><figcaption><p>Редактирование доставки</p></figcaption></figure></div>

Зависмые поля попадают в XML данные доставки в тэг `<dependent_fields>`, вывод в XSL шаблоне можно посмотреть в исходнике шаблона **МагазинДоставки \[MEGAPOST]**

{% code lineNumbers="true" fullWidth="true" %}

```html
<shop_delivery id="123">
   ...
   <dependent_fields>
      <field>surname</field>
      <field>patronymic</field>
      <field>address</field>
      <field>house</field>
      <field>flat</field>
   </dependent_fields>
</shop_delivery>
```

{% endcode %}


---

# 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://support.morozovpimnev.ru/megapost/zavisimye-polya.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.
