# Формы

Вызов любой формы в макете по клику в модальном окне возможен через дата аттрибут `data-modal`

Пример:

```html
<button class="btn btn-theme" data-modal='{"data":{"form": 1, "xsl": 123}}'>Обратный звонок</button>
```

где:\
form - указывается ID формы\
xsl - указывается ID XSL шаблона (по умолчанию это `ОтобразитьФормуАякс [MARKET]`)

если у Вас в форме есть поле `textarea` и вы хотите передать предварительный текст, например название товара или услуги, то можно указать так

```html
<button class="btn btn-theme" data-modal='{"data":{"form": 1, "xsl": 123, "textarea": "Клининг"}}'>Заказать услугу</button>
```

textarea - произвольный текст, если внутри строки есть кавычки, тогда нужно экранировать `"` через `\` - `"Текст \"в кавычках\""`


---

# 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/market/formy.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.
