Custom fields

Create and manage custom fields to collect additional client data, organize them into groups, show them during registration, and edit their values on client profiles in the B2CORE Admin Panel

Custom fields let you collect additional client information beyond the standard profile fields. You define a field once and organize it into a group. You can then add it to a registration form, where clients fill it in during registration, and its value can always be filled in or edited by an admin on the client profile.

You manage custom fields in the System > Custom Fields menu, which contains two pages:

  • Groups — sections that organize related fields.
  • Fields — the individual fields, each belonging to a group.

Access to custom fields is controlled by the following permissions, which you grant to back-office user groups in System > Users > Groups.

PermissionGrants the ability to
View Custom FieldsView the Groups and Fields pages.
Create Custom FieldsCreate groups, fields, and options.
Update Custom FieldsEdit groups, fields, and options.
Archive Custom FieldsArchive groups, fields, and options.
View client custom field valuesView custom field values on the client profile.
Edit client custom field valuesEdit custom field values on the client profile.

Groups

A group is a labeled section that holds related fields. On the client profile and in the registration form, fields are displayed under their group.

The Groups page lists the existing groups with the following information.

Label (English)

The group name shown to clients and admins. You can localize this label through B2TRANSLATE (see Translations).


Machine name

A unique identifier used in translation keys and the API. You set the machine name when you create the group, and it can't be changed afterward.


Sort order

The position of the group relative to other groups. Groups with a lower sort order appear first.


Archived

Indicates whether the group is archived.

To create a group:

Navigate to System > Custom Fields > Groups.

Click Create.

Specify the Label (English), Machine name, and Sort order.

Click Save.

To edit a group, click the Edit button. You can change the Label and Sort order; the Machine name is fixed.

To archive a group, click the Archive button. Archived groups are hidden from new registration forms, but they remain visible on client profiles where a stored value exists, so retiring a group never hides data already collected.

Fields

A field is a single input, such as a text box, a dropdown, or a date picker. Each field belongs to one group.

The Fields page lists the existing fields with their Label (English), Machine name, Type, Group, and Archived status.

Field types

The following field types are supported.

TypeDescription
TextA single-line text input.
MultilineA multi-line text area.
EmailA text input validated as an email address.
URLA text input validated as a URL.
PhoneA phone number input.
IntegerA whole number.
DecimalA number with a fractional part.
BooleanA yes/no value.
SelectA dropdown allowing a single option.
MultiselectA dropdown allowing multiple options.
DateA calendar date.
Date & timeA calendar date with a time.

Create a field

To create a field:

Navigate to System > Custom Fields > Fields.

Click Create.

Specify the Label (English), Machine name, Type, and Group.

In the Required / validation section, configure the validation rules (see Validation rules).

Click Save.

When editing a field, you can change its Label, Group, and validation rules. The Machine name and Type are set at creation and can't be changed.

To archive a field, click the Archive button. Like groups, archived fields stay visible on client profiles where a stored value exists.

Validation rules

The Required / validation section shows only the rules that apply to the selected field type.

RuleApplies toDescription
RequiredAll typesThe field must be filled in.
Min lengthText, MultilineThe minimum number of characters.
Max lengthText, Multiline, Email, URLThe maximum number of characters.
Regex patternText, MultilineA regular expression the value must match.
MinInteger, DecimalThe minimum allowed value.
MaxInteger, DecimalThe maximum allowed value.
Min dateDate, Date & timeThe earliest allowed date.
Max dateDate, Date & timeThe latest allowed date.
Min optionsMultiselectThe minimum number of selected options.
Max optionsMultiselectThe maximum number of selected options.

Required applies to the client registration form, where clients must fill in the field to continue. On the client profile, admins can save partial data even when a required field is empty; the format and option rules still apply to any value that is entered.

Options for Select and Multiselect fields

Fields of the Select and Multiselect types need a list of options. After you create such a field, open its edit page to manage the options at the bottom.

Each option has the following parameters.

Value

The value stored when the option is selected. It must be unique within the field.


Label (English)

The text shown to the client. You can localize this label through B2TRANSLATE (see Translations).


Machine name

An identifier used in translation keys.

To add an option, fill in the fields in the option row and click Add option. To archive an option, click the Archive button next to it.

Show custom fields during registration

You choose which custom fields appear in a registration form on the registration configuration edit page in System > Registration.

Custom fields can only be added to the new registration flows configured in System > Registration. They are not available in the legacy Wizards, where registration fields are set up through the Registration wizard configuration and appear on the client's Advanced tab.

The Wizards and their Advanced step are considered legacy. Once the migration to the System > Registration settings is complete, they will be removed.

Open the registration configuration you want to edit.

In the Custom Fields section, select the fields to show in the registration form.

Click Save.

Fields marked as Required must be filled in by the client before they can complete the registration.

If no custom fields exist yet, the section links to the Custom Fields page where you can create them.

Edit custom field values on a client profile

Open a client profile and go to the Custom Fields tab to view and edit the values collected for that client. Fields are grouped the same way as on the registration form.

Viewing values requires the View client custom field values permission, and editing them requires the Edit client custom field values permission.

Archived fields and groups remain visible on the tab as long as the client has a stored value for them, so retiring a field never hides previously collected data.

Translations

Labels for groups, fields, and options are entered in English and can be localized through B2TRANSLATE. The registration form uses the following translation key patterns:

  • Fields — Common.Registration.Form.Fields.<machineName>.Label
  • Options — Common.Registration.Form.Options.<optionName>.Label

To speed up localization, the registration configuration edit page provides a Copy B2TRANSLATE keys JSON button. It copies a JSON object that maps the translation keys to their English values for the custom fields currently selected in the form, their select and multiselect options, and the Terms & Conditions items. Paste the JSON into the Common tab in B2TRANSLATE.

Zuletzt aktualisiert am

Auf dieser Seite