> 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).

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

参与者通过微站注册您的计划时，我们会通过表单收集并存储其注册数据。当您 [设置微站](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/microsite-experiences/set-up-a-microsite.md) 并使用自动设置时，系统会自动创建表单。本文将介绍如何设置注册表单的提交规则，以及如何映射其他表单字段。

#### 自定义微站提交处理规则

您可以为表单设置提交处理规则，以便在有人尝试提交新表单时通知团队成员。如果您想追踪新参与者注册的情况，或在有人尝试注册但提交失败时收到通知，这项功能会很有用。您还可以选择自动将刚更新的参与者添加到特定用户细分群组，或从中移除。

1. 在左侧导航菜单中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%2Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg?alt=media) **\[Engage] → 数据源** → **表单**.
2. 将鼠标悬停在要自定义的注册表单上，然后选择 **编辑**.
3. 在 *更新注册表单页面*上，向下滚动到 *表单成功时*.
   * 选择有人成功注册时接收电子邮件的人员。
   * 选择参与者成功注册后要将其添加到的用户细分群组（如有）。
4. 在 *表单失败时* 部分下方，选择有人尝试提交但失败时接收电子邮件的人员。
5. 选择 **更新注册**.

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

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

**向注册表单添加其他字段**

1. 在左侧导航菜单中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%2Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg?alt=media) **\[Engage] → 内容**.
2. 在 *微型网站* 卡片上，选择 **编辑内容**.
   * 此操作会打开微站编辑器并显示微站侧滑面板。
3. 在 *未登录布局* 部分下方，选择 **注册**.
4. 在 *组件* 菜单中，选择 **添加** → **微站组件**.
5. 选择适合收集其他数据的组件，然后选择 **添加到其他字段**.
6. 在 *组件* 菜单，确保你已选择 **编辑** 选项卡，然后填写以下信息：
   * **必填项错误消息：** 必填字段缺少信息时显示的消息。
   * **输入标签：** 将在注册表单上显示的附加字段名称。
   * **输入名称属性：** 用于将附加字段映射到用户数据的字段键。
   * ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[启用开关]** **可选** （如果不是必填字段）。
   * 在 *输入* 类型下拉菜单中，选择此字段收集信息的方式。
7. 选择 **保存**.

**映射附加字段**

1. 在左侧导航菜单中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%2Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg?alt=media) **\[Engage] → 数据源** → **表单**.
2. 将鼠标悬停在要自定义的注册表单上，然后选择 **编辑**.
3. 在 *更新注册表单页面*上，选择 **高级设置**.
4. 在 *倡导者参与者字段*下方，选择 **添加映射**.
5. 从下拉列表中选择一个倡导者值，并在 *JSONata 表达式* 文本框中输入映射值，以便在注册时进行评估。
   * **添加到细分：** 配置具体规则，以便在注册后将参与者添加到细分中。

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

     **示例：** 手机 → `cellPhone`
   * **国家/地区：** 收集用户的国家/地区代码。

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

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

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

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

   * 如需查看注册表单提交记录，请参阅 [查看注册表单提交记录](https://help.impact.com/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="https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FSUEDTMBL8XWwd5SDsQrL%2FUntitled%20design%20(51).png?alt=media&amp;token=2c8b47f4-c2b7-4b6b-88be-bb96df00ec44" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
