Created by Github action <!-- mintlify-editor-comments:start --> Mintlify --- 0 threads from 0 users in Mintlify - No unresolved comments <!-- mintlify-editor-comments:end --> <!-- mintlify-comment--> <a href="https://dashboard.mintlify.com/twenty/twenty/editor/i18n-docs?source=pr_comment" target="_blank" rel="noopener noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-light.svg"><img src="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-light.svg" alt="Open in Mintlify Editor"></picture></a> <!-- /mintlify-comment --> Co-authored-by: github-actions <github-actions@twenty.com>
73 lines
2.1 KiB
Plaintext
73 lines
2.1 KiB
Plaintext
---
|
||
title: 创建自定义字段
|
||
description: 逐步指南:向任何对象添加自定义字段。
|
||
---
|
||
|
||
使用自定义字段可捕获特定于您业务的信息。 可将其添加到任何对象——标准或自定义。
|
||
|
||
## 步骤
|
||
|
||
1. 进入 **设置 → 数据模型**
|
||
2. 选择要添加字段的对象
|
||
3. 点击 **+ 添加字段**
|
||
4. 选择**字段类型**(所有类型请参见[字段](/l/zh/user-guide/data-model/capabilities/fields))
|
||
5. 输入**字段名称**和可选描述
|
||
6. 配置特定于该字段的设置(见下文)
|
||
7. 单击 **保存**
|
||
|
||
**快速方法:** 在任意表格视图的列标题末尾点击 **+** → **自定义字段**。
|
||
|
||
## 在视图中显示字段
|
||
|
||
新字段不会自动显示。 要显示:
|
||
|
||
1. 打开该对象的表格视图
|
||
2. 点击 **选项 → 字段**
|
||
3. 点击字段旁的 **眼睛图标** 以显示该字段
|
||
4. 拖动以重新排序
|
||
|
||
## 配置选项
|
||
|
||
### 用于选择/多选
|
||
|
||
1. 点击 **+ 添加选项** 以创建选项
|
||
2. 如有需要,设置**默认选项**
|
||
3. 拖动以重新排序选项
|
||
|
||
<Note>
|
||
**导入时请使用 API 名称。** 在设置中启用 **高级模式** 以查看 API 名称。 请参见[字段映射](/l/zh/user-guide/data-migration/capabilities/field-mapping)。
|
||
</Note>
|
||
|
||
### 适用于货币字段
|
||
|
||
设置**默认货币**(USD、EUR 等) 用于新记录。
|
||
|
||
### 适用于电话字段
|
||
|
||
设置**默认国家代码**,用于预填新的电话号码。
|
||
|
||
### 将字段设置为唯一
|
||
|
||
切换**唯一**选项,以防止各记录之间出现重复值。
|
||
|
||
<Note>
|
||
如果存在重复项(包括已删除记录中的重复项),将会出现错误。 请先清理重复项。
|
||
</Note>
|
||
|
||
### 设置默认值
|
||
|
||
对于选择字段,您可以选择新记录预先选中的选项。 对于复选框字段,设置默认是否选中。
|
||
|
||
## 停用字段
|
||
|
||
1. 进入 **设置 → 数据模型**
|
||
2. 找到该字段
|
||
3. 点击 **⋮ → 停用**
|
||
|
||
数据将被保留。 您可以稍后重新启用或永久删除。
|
||
|
||
## 相关内容
|
||
|
||
* [字段](/l/zh/user-guide/data-model/capabilities/fields) — 所有字段类型说明
|
||
* [数据模型常见问题解答](/l/zh/user-guide/data-model/how-tos/data-model-faq) — 常见问题
|