# Правило, позволяющее добавить подсказку для автомобилей

> Например, необходимо задать приоритет сортировки по историческим посещениям: сначала показывать те автомобили, на которых человек когда-либо приезжал.

1. Задайте следующее правило:

<figure><img src="/files/h4cWsd6CPtb4MK0W2SNF" alt=""><figcaption><p>Правило, позволяющее задавать подсказку для автомобилей</p></figcaption></figure>

2. Загрузите json-файл:

```json
{
  "query": {
    "fieldId": "surname",
    "nestedFields": [],
    "transformers": []
  },
  "limit": 5,
  "sort": "recentCars",
  "transformers": [
    {
      "transformerId": "CONDITION",
      "params": "{\n        \"condition\": {\n          \"fieldMask\": \"recentCars*\",\n          \"type\": \"eq\",\n          \"value\": \"0\"\n        },\n        \"actions\": [\n          {\n            \"type\": \"setRowColor\",\n            \"value\": \"#151854\"\n          },\n          {\n            \"type\": \"setTextColor\",\n            \"value\": \"#7FFF00\"\n          }\n        ]\n      }"
    }
  ]
}
```

3. При оформлении заявки, если посетитель уже приезжал на каких-либо автомобилях, они будут в списке сортировки первыми и будут выделены цветом:

<figure><img src="/files/dn0scGc0HV5KclRE3HEL" alt=""><figcaption><p>Пример сортировки по автомобилям, на которых посетитель когда-то приезжал</p></figcaption></figure>


---

# 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://docs.aamsystems.ru/passoffice/passoffice-guide/admin-guide-doc/konfigurirovanie/editor-rule-base/pravilo-pozvolyayushee-dobavit-podskazku-dlya-avtomobilei.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.
