Mandatory conditions

Description

Mandatory conditions specify a mandatory condition for filling in a field in the view.

The syntax of the conditions is the same as in display conditions.

Under this condition, the attribute becomes mandatory, otherwise the attribute remains the same as it was specified in the view before the mandatory condition was applied.

Example in JSON:

{
      {
         "caption": "Основание для условия обязательности",
         "type": 1,
         "property": "obligation_condition_base",
         "size": 2,
         "maskName": null,
         "mask": null,
         "mode": null,
         "fields": [],
         "hierarchyAttributes": null,
         "columns": [],
         "actions": null,
         "commands": [],
         "orderNumber": 20,
         "required": false,
         "visibility": null,
         "enablement": null,
         "obligation": null,
         "readonly": false,
         "selectionPaginated": true,
         "validators": null,
         "hint": null,
         "historyDisplayMode": 0,
         "tags": null
  },
  {
         "caption": "Поле обязательно, если основание заполнено",
         "type": 1,
         "property": "obligation_condition_use",
         "size": 2,
         "maskName": null,
         "mask": null,
         "mode": null,
         "fields": [],
         "hierarchyAttributes": null,
         "columns": [],
         "actions": null,
         "commands": [],
         "orderNumber": 30,
         "required": false,
         "visibility": null,
         "enablement": null,
         "obligation": ".obligation_condition_base !\u003d \u0027\u0027",
         "readonly": false,
         "selectionPaginated": true,
         "validators": null,
         "hint": null,
         "historyDisplayMode": 0,
         "tags": null
  },
  {
         "caption": "Поле обязательно, если в основании \u00271\u0027",
         "type": 1,
         "property": "obligation_condition_1",
         "size": 2,
         "maskName": null,
         "mask": null,
         "mode": null,
         "fields": [],
         "hierarchyAttributes": null,
         "columns": [],
         "actions": null,
         "commands": [],
         "orderNumber": 40,
         "required": false,
         "visibility": null,
         "enablement": null,
         "obligation": ".obligation_condition_base \u003d\u003d \u00271\u0027",
         "readonly": false,
         "selectionPaginated": true,
         "validators": null,
         "hint": null,
         "historyDisplayMode": 0,
         "tags": null
  }
    }