> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/microsite-experiences/customize-and-map-your-microsite-registration-form.md).

# 自定义并映射你的微型站注册表单

当参与者通过您的微型网站为您的项目注册时，我们会通过表单收集并存储他们的注册数据。当您 [设置微型网站](/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/microsite-experiences/set-up-a-microsite.md) 使用自动设置时，系统将自动创建一个表单。本文帮助文章将说明如何设置注册表单的提交规则以及映射额外的表单字段。

#### 自定义您的微型网站提交处理规则

您可以为表单设置提交处理规则，以便每当有新的提交尝试时，团队中的某个人都会收到通知。如果您想跟踪何时收到新参与者，或在有人尝试注册但提交失败时收到通知，这会很有用。您还可以选择自动将新更新的参与者添加到某个特定用户分群中，或从中移除。

1. 从左侧导航菜单中，选择 ![](/files/209022bdb234289211a24a980f6227a8684cc439) **\[Engage] → 数据源** → **表单**.
2. 将鼠标悬停在要自定义的注册表单上，然后选择 **编辑**.
3. 在 *更新注册表单页面*，向下滚动到 *表单成功时*.
   * 选择在有人成功注册时接收电子邮件的人。
   * 选择参与者成功注册后应被添加到的用户分群（如果有）。
4. 在 *当表单提交失败时* 部分，选择在提交尝试失败时接收电子邮件的人。
5. 选择 **更新注册**.

#### 映射注册表单字段

在创建微型网站注册表单时，您可以配置 Advocate 参与者字段在注册期间设置为表单值或静态数据。您的微型网站包含以下默认的微型网站表单字段： *名*, *姓*, *电子邮件*，以及 *密码*。您可以修改注册表单以收集有关微型网站用户的更多信息，例如 *电话号码*， *国家/地区*, *业务类型*等。您还可以添加一个条款与条件复选框，提示用户接受相关条款。

**向注册表单添加额外字段**

1. 从左侧导航菜单中，选择 ![](/files/209022bdb234289211a24a980f6227a8684cc439) **\[Engage] → 内容**.
2. 在 *Microsite* 卡片中，选择 **编辑内容**.
   * 此操作将打开微型网站编辑器并显示微型网站侧边面板。
3. 在 *已登出布局* 部分下，选择 **注册**.
4. 在 *组件* 菜单，选择 **添加** → **微站点组件**.
5. 选择适合收集额外数据的组件，然后选择 **添加到额外字段**.
6. 在 *组件* 菜单，确保您已选择 **编辑** 选项卡，然后填写以下信息：
   * **必填错误消息：** 当必填字段缺少信息时显示的消息。
   * **输入标签：** 将在注册表单上显示的额外字段名称。
   * **输入 name 属性：** 用于将额外字段映射到用户数据的额外字段键。
   * ![](/files/3980f01ba7b178cc917bfb7b270feb4fac2992c6) **\[切换为开启]** **可选** 如果它不是必填字段。
   * 从 *输入* 类型下拉菜单，选择该字段收集信息的方式。
7. 选择 **保存**.

**映射额外字段**

1. 从左侧导航菜单中，选择 ![](/files/209022bdb234289211a24a980f6227a8684cc439) **\[Engage] → 数据源** → **表单**.
2. 将鼠标悬停在要自定义的注册表单上，然后选择 **编辑**.
3. 在 *更新注册表单页面*，选择 **高级设置**.
4. 在下方 *Advocate 参与者字段*，选择 **添加映射**.
5. 从下拉列表中选择一个 Advocate 值，并在 *JSONata 表达式* 文本框中输入映射值，该值将在注册时进行计算。
   * **添加到分群：** 配置注册后将参与者添加到分群的具体规则。

     **示例：** `($contains(email, “acme.com”) ? ($append(segments, “Existing”)))`
   * **自定义字段：** 映射您想在注册表单中捕获的自定义值。

     **示例：** 手机号码 → `手机号码`
   * **国家：** 获取用户的国家代码。

     **示例：** 国家 → `countryCode`
   * **区域设置：** 名为 locale 并映射到参与者区域设置字段的表单字段值。

     **示例：** 区域设置 → `locale`
   * **推荐代码：** 获取推荐人的唯一推荐代码。

     **示例：** `$exists(referredByCodes) AND referredByCodes != ""`
   * **可被推荐：** 指示用户是否可以被推荐。

     **示例：** 可被推荐 → `false`
6. 选择 **更新注册** 完成后。

   * 要查看您的注册表单提交，请参阅 [查看您的注册表单提交](/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/microsite-experiences/view-your-microsite-registration-form-submissions.md).

   <div data-with-frame="true"><figure><img src="/files/1cd0b607b3b091b5b5ac2104256501be66d7c5a2" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/microsite-experiences/customize-and-map-your-microsite-registration-form.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
