Some checks failed
App Prod-Parity E2E Dispatch / dispatch (push) Failing after 10s
CD Storybook UI / build (push) Failing after 3m25s
CD Storybook UI / dispatch (push) Has been skipped
CD deploy main / website-changed-files (push) Successful in 18m8s
CI Agent Skills / changed-files-check (push) Successful in 18m9s
CI Create App E2E minimal / changed-files-check (push) Successful in 24s
CI Create App / changed-files-check (push) Successful in 26s
CI Docs / changed-files-check (push) Successful in 26s
CI Emails / changed-files-check (push) Successful in 28s
CI Example App Hello World / changed-files-check (push) Successful in 23s
CI Front / changed-files-check (push) Has been skipped
CI Example App Postcard / changed-files-check (push) Successful in 27s
CI UI / changed-files-check (push) Has been skipped
CI Utils Test / changed-files-check (push) Successful in 45s
CI Twenty Apps / discover (push) Successful in 1m3s
CD deploy main / deploy-main (push) Failing after 3s
CI Agent Skills / agent-skills-validate (push) Has been skipped
CI Create App / create-app-test (lint) (push) Has been skipped
CI Emails / emails-test (push) Has been skipped
CI Front / front-task (lingui:compile) (push) Has been skipped
CI Front / front-task (lint) (push) Has been skipped
CI Example App Postcard / example-app-postcard (push) Has been skipped
CI UI / ui-task (lint) (push) Has been skipped
CI UI / ui-task (pack-size) (push) Has been skipped
CI UI / ui-task (size) (push) Has been skipped
CI UI / ui-task (test) (push) Has been skipped
CI UI / ui-task (typecheck) (push) Has been skipped
CI Utils Test / utils-test (push) Has been skipped
CI Twenty Apps / ${{ matrix.app.name }} (push) Has been skipped
CI Emails / ci-emails-status-check (push) Successful in 2s
CI Example App Hello World / ci-example-app-hello-world-status-check (push) Successful in 2s
CI Example App Postcard / ci-example-app-postcard-status-check (push) Successful in 3s
CI UI / ui-sb-test (push) Has been skipped
CI Utils Test / ci-utils-test-status-check (push) Successful in 2s
CI Twenty Apps / ci-twenty-apps-status-check (push) Successful in 2s
CI UI / ci-ui-status-check (push) Successful in 2s
CI Desktop / desktop (push) Failing after 1m8s
Push docs to Crowdin / Push documentation to Crowdin (push) Failing after 55s
Push translations to Crowdin / Extract and upload translations (push) Failing after 5s
Push website translations to Crowdin / Extract and upload website translations (push) Failing after 5s
CI Create App / create-app-test (test) (push) Has been skipped
CI Create App / create-app-test (typecheck) (push) Has been skipped
CI Docs / docs-lint (push) Has been skipped
CI Example App Hello World / example-app-hello-world (push) Has been skipped
CI Front / front-task (lingui:extract) (push) Has been skipped
CI Front / front-task (test) (push) Has been skipped
CI Front / front-task (typecheck) (push) Has been skipped
CI UI / ui-sb-build (push) Failing after 1m32s
CI Twenty Apps / ${{ matrix.app.name }} (${{ matrix.server-source }}) (push) Has been skipped
CI Agent Skills / agent-skills-publish (push) Has been skipped
CI Create App / ci-create-app-status-check (push) Successful in 2s
CI Agent Skills / agent-skills-remote-source (push) Has been skipped
CI Create App E2E minimal / create-app-e2e-minimal (push) Has been cancelled
CI E2E Main / e2e-test (push) Has been cancelled
CI Front / front-sb-build (push) Has been cancelled
CI Front / front-build (push) Has been cancelled
CI Create App E2E minimal / ci-create-app-e2e-minimal-status-check (push) Has been cancelled
CI E2E Main / ci-e2e-main-status-check (push) Has been cancelled
CI E2E Main / notify-main-ci-failure (push) Has been cancelled
CI E2E Main / qa-scout-comment (push) Has been cancelled
CI Front / front-sb-test (push) Has been cancelled
CI Front / front-sb-screenshots (push) Has been cancelled
CI Front / ci-front-status-check (push) Has been cancelled
DPA Sub-Processor Sync / sync-subprocessors (push) Failing after 3s
AI Catalog Sync / sync-catalog (push) Failing after 2s
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) — 常见问题
|