基本信息步骤支持的字段
了解注册向导基本信息步骤支持的字段,包括字段类型、验证规则和嵌套要求
注册向导在基本信息步骤中只能接受和处理特定数据。 下表概述了此步骤支持的字段:
对于每个字段,都会说明其是否可以独立使用,还是必须嵌套在特定组内。
字段名称必须与名称列中提供的名称完全一致。 将在 B2CORE UI 的注册页面上显示的字段标签可根据您的偏好进行修改。
此外,应分配给字段的特定数据验证规则列在验证规则列中。
电子邮箱、密码和确认密码字段
下表提供了用于输入电子邮箱、设置密码和确认密码的字段信息,包括字段类型、验证规则和用于正确配置的附加属性。
| Name | Field type | Label | Validation rules | Nesting requirements | Additional attributes |
|---|---|---|---|---|---|
| input |
requiredemail:rfc,spoof,strictunique_active_email |
No | — | ||
| password | passwordButton | Password |
requiredpassword_lengthpassword_content
|
No |
Label hint — specify
password_hint
|
| password_confirmation | passwordButton | Password confirmation |
requiredsame:password
|
No |
Label hint — specify
password_confirmation_hint
|
名字、姓氏和生日字段
下表概述了用于输入名字、姓氏和出生日期的字段。
这些字段必须嵌套在名为 info 的 group 字段内。
| Name | Field type | Label | Validation rules | Nesting requirements | Additional attributes |
|---|---|---|---|---|---|
| info | group | — | — | No | — |
| givenName | input | First name |
requiredstringmin:1max:30info_name
|
Must be nested in the info group |
— |
| familyName | input | Last name |
requiredstringmin:1max:30info_name
|
Must be nested in the info group |
— |
| birthday | date | Birth date |
requireddateage:18
|
Must be nested in the info group |
— |
地址字段
下表概述了用于输入地址信息的字段。
这些字段必须嵌套在名为 0 的 group 字段内,而该字段又必须嵌套在名为 addresses 的 group 内。
| Name | Field type | Label | Validation rules | Nesting requirements | Additional attributes |
|---|---|---|---|---|---|
| addresses | group | — |
requiredarray
|
No | — |
| 0 | group | — | — | Must be nested in the addresses group |
— |
| country_code | select | Country |
requirednullablecountries_handbook
|
Must be nested in the 0 group |
Options type (endpoint) — specify
/api/v1/countriesOptions type (type) — specify CountriesFor usage details, refer to the example provided below the table. |
| state | input | State |
requiredstringmin:1
|
Must be nested in the 0 group |
— |
| postal_code | input | Postal/Zip Code |
required
|
Must be nested in the 0 group |
— |
| city | input | City |
requiredstringmin:1
|
Must be nested in the 0 group |
— |
电话字段
下表概述了用于输入电话号码的字段。
该字段必须嵌套在名为 0 的 group 字段内,而该字段又必须嵌套在名为 phones 的 group 内。
| Name | Field type | Label | Validation rules | Nesting requirements | Additional attributes |
|---|---|---|---|---|---|
| phones | group | — |
requiredarray
|
No | — |
| 0 | group | — | — | Must be nested in the phones group |
— |
| phone | input | Phone number |
requireddistinctphone:AUTO
|
Must be nested in the 0 group |
Mask key — specify
phone
|
同意和协议字段
下表概述了客户同意所需的字段。这些字段对于获得客户必要的协议和同意至关重要。这些字段必须嵌套在名为 requirements 的 group 字段内。
| Name | Field type | Label | Validation rules | Nesting requirements | Additional attributes |
|---|---|---|---|---|---|
| requirements | group | — |
array
|
No | — |
| pdp | boolean |
labels.agreement This label is used to include a link to the document containing the terms and conditions that clients must agree to. |
requiredbooleanrequiredValue
|
Must be nested in the requirements group |
— |
| adult | boolean | I am an adult |
requiredbooleanrequiredValue
|
Must be nested in the requirements group |
— |
| resident | boolean | I am not a US, Iran, or North Korea resident |
requiredbooleanrequiredValue
|
Must be nested in the requirements group |
— |
最后更新于