> For the complete documentation index, see [llms.txt](https://doc.nextbot.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.nextbot.ru/functional/integrations/chat-na-sait/stili-formy-personalnykh-dannykh-v-chate-na-sait.md).

# Стили формы персональных данных в чате на сайт

Настройка стилей формы персональных данных в чате на сайт

Если в агенте есть функция с действием ["Форма персональных данных"](https://doc.nextbot.ru/functional/functions/sending-result/forma-personalnykh-dannykh.md) , в настройках чата на сайт вы можете персонализировать внешний вид формы, которая открывается внутри [виджета](https://doc.nextbot.ru/functional/integrations/chat-na-sait/vidzhet-dlya-saita.md) или [встроенного чата на сайт](https://doc.nextbot.ru/functional/integrations/chat-na-sait/chat-lending-na-veb-sait-iframe.md).

{% hint style="warning" %}
Для виджета и встроенного чата на сайт стили формы персональных данных настраиваются отдельно в соответствующих разделах настроек ("Интеграции" → "Чат на сайт" → "Виджет для сайта" или "Html код в тело сайта").
{% endhint %}

Если функций с действием ["Форма персональных данных"](https://doc.nextbot.ru/functional/functions/sending-result/forma-personalnykh-dannykh.md) несколько, интерфейс позволяет настраивать стиль формы **отдельно для каждой.**

<div align="left"><figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FSvzeZ3yQz7FHZ9hvOwjK%2Fimage.png?alt=media&amp;token=dd47d160-c264-451b-9fda-b3088706b4a7" alt="" width="375"><figcaption></figcaption></figure></div>

## Способы настройки стилей

Доступны два варианта:

### 1. Настройка вручную

Вы можете изменить:

* заголовок формы;
* текст кнопки отправки;
* уведомление об успешной отправке;
* фон окна и цвет заголовка;
* фон и цвет иконки формы;
* фон полей и цвет текста;
* цвет чекбокса и цвет ссылки в тексте согласия;
* цвет и толщину границ полей;
* цвет меток (лейблов);
* стиль обводки при фокусе;
* фон и цвет текста кнопки отправки.

### 2. Импорт стилей из функции

Если в функции, где настроено действие "Форма персональных данных", уже задан стиль формы, вы можете импортировать его:

1\. Нажмите "Импорт из функции".

![](https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FR41vxAsSHaAUVnCI1Szc%2Funknown.png?alt=media\&token=b6a45244-2502-4a79-96bb-35c0655a3113)

2\. Выберите функцию, из которой хотите перенести настройки стилей.

![](https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FNgpf7bcHBX8xHlZWTGSE%2Funknown.png?alt=media\&token=cda8fa79-3dec-4a78-a192-035b79f5d08c)

3\. Нажмите кнопку “Импортировать”.

![](https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FekEcklrk5SkSg4yrzT1L%2Funknown.png?alt=media\&token=2795bfd9-e8fc-416e-82bd-ade727eafc9b)

После импорта базовых параметров стилей вы также можете отдельно кастомизировать внешний вид иконки формы.

![](https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FwGpIXkyrOvhBGsS14Sj9%2Funknown.png?alt=media\&token=28b14f62-4876-4628-ac92-d727326d7b17)

## Предварительный просмотр

В левой части окна настроек отображается предварительный просмотр формы с учётом всех заданных параметров стиля.

### Для виджета:

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2F02BMnIGGRv8BEZmaZ8iT%2Fimage.png?alt=media&amp;token=a6fe9400-9901-42e0-b23d-0f2694ce9c9a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FEFwCb8qX7kkbc7e6bd7g%2Fimage.png?alt=media&amp;token=a9a3c601-5f94-459f-965c-1b8ee3350f94" alt=""><figcaption></figcaption></figure>

### Для встроенного чата на сайт:

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FsmBKcnhGV4D7FKsrBwIl%2Fimage.png?alt=media&amp;token=4a1424e2-5bfd-4530-92ce-d06bf3230a65" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2Fvs7JbtpbtsF4EK3VbUag%2Fimage.png?alt=media&amp;token=1c2e3d90-18ae-40ba-aba2-41649f68e9b3" alt=""><figcaption></figcaption></figure>

## Сохранение и сброс настроек

* Кнопка "Сбросить" возвращает стили формы персональных данных к базовым значениям.
* После внесения изменений обязательно нажмите "Сохранить".

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FapxSNC09YKFOybm41h7V%2Fimage.png?alt=media&amp;token=97903ffe-c7e4-4d07-91e6-719086c47475" alt="" width="370"><figcaption></figcaption></figure>

{% hint style="info" %}
**Важно**

После изменения стилей необходимо **обновить код** чата на вашем сайте, чтобы форма корректно отобразилась с учётом новых настроек.
{% endhint %}


---

# 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.nextbot.ru/functional/integrations/chat-na-sait/stili-formy-personalnykh-dannykh-v-chate-na-sait.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.
