You're viewing a demo portfolio

Join the waitlist
PRSM

update_field

Active

Tool of QuintaDB

declared in 1.0.0

Змінити/перейменувати поле форми (rename field, edit property, update column). Назву, опис, позицію, опції для select/radio, значення за замовчуванням, обов'язковість, розміри, унікальність. Не змінює тип поля.

Parameters schema

{
  "type": "object",
  "required": [
    "app_id",
    "entity_id"
  ],
  "properties": {
    "cols": {
      "type": "integer",
      "description": "Кількість колонок для textarea"
    },
    "desc": {
      "type": "string",
      "description": "Опис / підказка під полем"
    },
    "name": {
      "type": "string",
      "description": "Нова назва поля"
    },
    "rich": {
      "type": "boolean",
      "description": "true — rich text editor (для textarea)"
    },
    "rows": {
      "type": "integer",
      "description": "Кількість рядків для textarea"
    },
    "size": {
      "type": "integer",
      "description": "Ширина поля в пікселях"
    },
    "step": {
      "type": "integer",
      "description": "Крок для autoincrement поля"
    },
    "app_id": {
      "type": "string",
      "description": "Project ID (from list_projects)"
    },
    "choices": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Нові варіанти для select / radio / checkbox (замінює всі поточні)"
    },
    "default": {
      "type": "string",
      "description": "Значення за замовчуванням"
    },
    "visible": {
      "type": "boolean",
      "description": "Чи відображати поле у формі"
    },
    "field_id": {
      "type": "string",
      "description": "ID поля — альтернатива до field_name"
    },
    "position": {
      "type": "integer",
      "description": "Позиція в формі (порядковий номер від 1)"
    },
    "required": {
      "type": "boolean",
      "description": "true — обов'язкове поле, false — знімає обов'язковість"
    },
    "delimiter": {
      "type": "string",
      "description": "Роздільник тисяч"
    },
    "dependent": {
      "type": "boolean",
      "description": "Залежне rel поле (каскадна фільтрація)"
    },
    "entity_id": {
      "type": "string",
      "description": "Form ID (from list_forms or describe_project)"
    },
    "precision": {
      "type": "integer",
      "description": "Знаків після коми (для float)"
    },
    "separator": {
      "type": "string",
      "description": "Роздільник дробової частини: '.' або ','"
    },
    "field_name": {
      "type": "string",
      "description": "Назва поля (резолвиться в ID автоматично)"
    },
    "start_from": {
      "type": "integer",
      "description": "Початкове значення для autoincrement поля"
    },
    "text_align": {
      "type": "integer",
      "description": "Вирівнювання в комірці: 1=ліво, 2=право, 3=центр, 4=ширина"
    },
    "is_currency": {
      "type": "boolean",
      "description": "Показувати як валюту"
    },
    "validations": {
      "type": "object",
      "properties": {
        "is": {
          "description": "Точна довжина (text) або значення (number)"
        },
        "URL": {
          "type": "string",
          "description": "\"on\" — перевірка формату URL"
        },
        "Email": {
          "type": "string",
          "description": "\"1\" — перевірка формату email"
        },
        "format": {
          "type": "string",
          "description": "Regexp у форматі /^regex$/"
        },
        "maximum": {
          "description": "Максимум символів (text) або значення (number)"
        },
        "minimum": {
          "description": "Мінімум символів (text) або значення (number)"
        },
        "LOCATION": {
          "type": "string",
          "description": "\"1\" — перевірка геолокації"
        },
        "Exclusion": {
          "type": "string",
          "description": "Заборонені значення через кому"
        },
        "Inclusion": {
          "type": "string",
          "description": "Дозволені значення через кому"
        },
        "onlyOnSubmit": {
          "type": "string",
          "description": "\"1\" — валідувати тільки при сабміті"
        }
      },
      "description": "Правила валідації поля (рекомендований спосіб замість validate_options)."
    },
    "disable_past": {
      "type": "boolean",
      "description": "Заборонити минулі дати"
    },
    "uniq_columns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Для uniq_validation=multi: масив назв або ID інших полів, разом з якими перевіряється унікальність. Наприклад [\"Прізвище\", \"Дата народження\"] — комбінація Поле+Прізвище+Дата повинна бути унікальною."
    },
    "currency_unit": {
      "type": "string",
      "description": "Символ валюти"
    },
    "disable_future": {
      "type": "boolean",
      "description": "Заборонити майбутні дати"
    },
    "vertical_align": {
      "type": "integer",
      "description": "Вертикальне вирівнювання: 1=зверху, 2=посередині, 3=знизу"
    },
    "truncates_after": {
      "type": "integer",
      "description": "Обрізати текст після N символів у таблиці"
    },
    "uniq_validation": {
      "enum": [
        "none",
        "simple",
        "multi"
      ],
      "type": "string",
      "description": "Тип перевірки унікальності: none — без перевірки; simple — це поле унікальне саме по собі; multi — унікальне в комбінації з іншими полями (вказати в uniq_columns). Приклад: поле Email + uniq_validation=multi + uniq_columns=[\"Компанія\"] — пара Email+Компанія має бути унікальною."
    },
    "display_as_image": {
      "type": "boolean",
      "description": "true — показувати URL як картинку в таблиці (тільки для url поля)"
    },
    "uniq_error_message": {
      "type": "string",
      "description": "Кастомне повідомлення про помилку при порушенні унікальності"
    },
    "depends_from_field_id": {
      "type": "string",
      "description": "ID батьківського rel поля для каскаду"
    }
  }
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.50.

Parent server

QuintaDB

1/7 registries
View full server →