{
  "form": [
    [
      {
        "id": "client_id",
        "key": "id",
        "cols": 6,
        "name": "client_id",
        "type": "typeahead",
        "label": "Cliente",
        "values": "entity_name,person_name",
        "mandatory": false,
        "createForm": "registry_list_form",
        "valueSearch": "api/v1/registry/search/id:",
        "typeaheadList": "api/v1/registry/search/entity_name!person_name:",
        "createEndpoint": "/api/v1/registry",
        "createdEntryFields": "entity_name,entity_brand,person_name,person_surname",
        "createEndpointMethod": "post"
      },
      {
        "id": "type",
        "cols": 3,
        "list": "/api/v1/misc/codelists/code_list_duties_services",
        "name": "type",
        "type": "dropdown",
        "label": "Service",
        "values": "description",
        "onchange": "jivaCoreOptions.unsavedData=true;setDutyTaskName()",
        "mandatory": false,
        "createForm": "duty_services_codelist_form",
        "defaultValue": "ZZZ",
        "createEndpoint": "/api/v2/admin/codelists/code_list_duties_services",
        "createdEntryFields": "description",
        "createEndpointMethod": "post"
      },
      {
        "id": "price",
        "cols": 2,
        "name": "meta[price]",
        "type": "text",
        "label": "Price",
        "autofocus": true
      },
      {
        "id": "currency",
        "cols": 1,
        "name": "meta[currency]",
        "type": "text",
        "label": "Currency",
        "autofocus": true
      }
    ],
    [
      {
        "id": "task",
        "cols": 6,
        "name": "task",
        "type": "text",
        "label": "Duty name",
        "autofocus": true,
        "mandatory": true,
        "relatedHidden": "id"
      },
      {
        "id": "date_request",
        "cols": 2,
        "name": "date_request",
        "type": "date",
        "label": "Date Request",
        "default": "today",
        "onchange": "jivaCoreOptions.unsavedData=true;checkAllDates();",
        "validate": "mandatory,date",
        "mandatory": true
      },
      {
        "id": "date_expiry",
        "cols": 2,
        "name": "date_expiry",
        "type": "date",
        "label": "Date Expiry",
        "onchange": "jivaCoreOptions.unsavedData=true;checkAllDates();",
        "mandatory": false
      },
      {
        "id": "user_id",
        "key": "id",
        "cols": 2,
        "list": "api/v1/users/",
        "name": "user_id",
        "type": "dropdown",
        "label": "Users",
        "values": "username",
        "onchange": "jivaCoreOptions.unsavedData=true;",
        "autofocus": true,
        "createForm": "core_users_form",
        "defaultValue": "ZZZ",
        "createEndpoint": "/api/v1/users/new",
        "createdEntryFields": "description",
        "createEndpointMethod": "post"
      }
    ],
    [
      {
        "id": "note",
        "cols": 12,
        "name": "meta[note]",
        "type": "richtext",
        "label": "Description",
        "onchange": "jivaCoreOptions.unsavedData=true;",
        "mandatory": false
      }
    ]
  ]
}