基本信息步骤支持的字段

了解注册向导基本信息步骤支持的字段,包括字段类型、验证规则和嵌套要求

注册向导在基本信息步骤中只能接受和处理特定数据。 下表概述了此步骤支持的字段:

对于每个字段,都会说明其是否可以独立使用,还是必须嵌套在特定组内。

字段名称必须与名称列中提供的名称完全一致。 将在 B2CORE UI 的注册页面上显示的字段标签可根据您的偏好进行修改。

此外,应分配给字段的特定数据验证规则列在验证规则列中。

有关所有可用字段类型以及可分配给字段的数据验证规则的说明,请参阅字段类型和验证规则。

电子邮箱、密码和确认密码字段

下表提供了用于输入电子邮箱、设置密码和确认密码的字段信息,包括字段类型、验证规则和用于正确配置的附加属性。

Name Field type Label Validation rules Nesting requirements Additional attributes
email input Email required
email:rfc,spoof,strict
unique_active_email
No —
password passwordButton Password required
password_length
password_content
No Label hint — specify password_hint
password_confirmation passwordButton Password confirmation required
same: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 required
string
min:1
max:30
info_name
Must be nested in the info group —
familyName input Last name required
string
min:1
max:30
info_name
Must be nested in the info group —
birthday date Birth date required
date
age:18
Must be nested in the info group —

地址字段

下表概述了用于输入地址信息的字段。 这些字段必须嵌套在名为 0 的 group 字段内,而该字段又必须嵌套在名为 addresses 的 group 内。

Name Field type Label Validation rules Nesting requirements Additional attributes
addresses group — required
array
No —
0 group — — Must be nested in the addresses group —
country_code select Country required
nullable
countries_handbook
Must be nested in the 0 group Options type (endpoint) — specify /api/v1/countries
Options type (type) — specify Countries
For usage details, refer to the example provided below the table.
state input State required
string
min: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 required
string
min:1
Must be nested in the 0 group —

电话字段

下表概述了用于输入电话号码的字段。 该字段必须嵌套在名为 0 的 group 字段内,而该字段又必须嵌套在名为 phones 的 group 内。

Name Field type Label Validation rules Nesting requirements Additional attributes
phones group — required
array
No —
0 group — — Must be nested in the phones group —
phone input Phone number required
distinct
phone: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.
required
boolean
requiredValue
Must be nested in the requirements group —
adult boolean I am an adult required
boolean
requiredValue
Must be nested in the requirements group —
resident boolean I am not a US, Iran, or North Korea resident required
boolean
requiredValue
Must be nested in the requirements group —

最后更新于

本页目录