属性字段

Property fields, or properties, enable the customization of a form view by adding various field types. These fields allow information storage and management by adding values.

属性字段与常规字段

Properties act as pseudo-fields; they behave like regular fields but are not saved as columns in the database. They also rely on a defined parent record. For example, adding a property to a task inserts a field in all tasks within the same project while other projects’ tasks remain unaffected.

添加属性字段

要向:ref:表单视图 <studio/views/general/form>`添加第一个属性字段,请点击:icon:`fa-cog (操作) 图标,然后选择:icon:fa-cogs 编辑属性。

Then, configure the property field in the popover:

  1. Enter the property’s Label.

  2. Choose a Field Type.

  3. Configure the field based on the selected type:

    字段类型

    使用

    选项

    文本

    单行短文本

    如果需要,可输入 默认值。

    多行文本

    多行完整文本

    如果需要,可输入 默认值。

    HTML

    HTML 字段

    如果需要,可输入 默认值。

    复选框

    选中或未选中的状态

    选择 默认状态。

    整数

    整数(正数、负数或零,不带小数)

    如果需要,可输入 默认值。

    小数

    小数 (正数、负数或零,不带小数)

    如果需要,可输入 默认值。

    货币

    选择(成本)货币

    如果需要,可输入 默认值。

    日期

    在日历上选择一个日期

    如果需要,可选择一个 默认值。

    日期和时间

    在日历上选择一个日期,在时钟上选择一个时间

    如果需要,可选择一个 默认值。

    选项

    从一组预定义值中选择一个值

    点击 添加值 并输入 选项名称,以添加一个可选项。

    如果需要,可点击 )按钮,将某个选项设为默认。

    使用 )按钮拖放选项以重新排序。

    点击 )按钮删除一个选项。

    标签

    以标签形式选择多个值

    输入一个 标签 名称,然后按回车键保存。

    点击标签并选择另一种颜色,以更改其颜色。

    多对一

    从另一个模型中选择一条记录

    输入 模型 名称。如果需要,可配置其 域 以筛选记录。

    如果需要,可选择一个 默认值。

    多对多

    从另一个模型中选择多条记录

    输入 模型 名称。如果需要,可配置其 域 以筛选记录。

    如果需要,可选择一个 默认值。

    分隔符

    将多个属性分组到一个可折叠的标签下

  4. 输入:guilabel:`后缀`以在字段值后添加上下文描述。例如,要指示每公里的成本,请使用:guilabel:`货币`字段并将其命名为**成本**,然后输入**每公里**作为:guilabel:`后缀`字段。该属性随后显示如下:成本 [添加的值] 每公里。

  5. 启用:guilabel:`在卡片中显示`以选择是否在每个字段的看板、列表或日历视图的卡片中显示属性。

  6. 启用 AI`以向属性添加:ref:`AI 字段 <ai/add-a-new-field/properties>。编写:guilabel:提示词`和/或输入/field`以插入动态值。

  7. Click outside the popover to save the added property field.

小技巧

  • To add another property field, click Add a Property at the bottom of the form.

  • To edit a property field, click the (pencil) icon next to it, perform the necessary changes in the popover, then click outside the popover to save the changes.

  • To remove a property field, click the (pencil) icon next to it, click Delete in the popover, then click Delete Field.

  • To reorder property fields, use the (drag handle) icon.

跨应用的属性

属性字段可以在多个模型的 表单视图 中定义。一旦设置,该属性将由链接到同一母级的所有记录共享。

应用

模型

上级

会计

资产/收入确认

贷款

资产模型

日记账

考评

员工考评

部门

批准

批准请求

类别

CRM

Lead/Opportunity

Sales team

员工

Employee

Company

活动

Event Registration

活动

车队

车辆

车辆型号

前台

前台访客

工作站

服务台

工单

服务台团队

库存

批次/序列号

调拨

批量调拨

产品变体

操作类型

操作类型

知识库

知识库文章

父级文章

维护保养

维修设备

设备类别

会议室

房间

办公室

薪酬管理

Employee

Payslip

Company

Structure

计划

班次

角色

项目 / 现场服务

任务

项目

招募

应聘者

职位

应聘人

职位

公司

公司

维修

Repair order

公司

销售 / 等

产品

类别

注解

以下模型不依赖于任何*父级*,适用于所有记录:

  • 联系人`应用中的:doc:`联系人表单 <../../../applications/essentials/contacts>

  • 电子邮件营销`应用中的:ref:`邮件列表联系人 <marketing/mailing-list/contacts>