This module lets you register a new person under your account in the online office. The new user is added through a standard registration form, and required fields are marked with an asterisk.
In the NRM admin panel, you can control which form fields are shown and which of them are required. System fields such as first name, last name, and email are always required, while other fields can be adjusted in the Profile Fields section.
In order to register a new user it is necessary to fill in the fields of the registration form - everything is the same as in the usual registration. The required fields are marked with an asterisk.
Configuration
The module supports flexible form settings, including field labels, optional fields, hidden values sent to the server, OTP confirmation behavior, language handling, and resend text customization.
| props | type | description |
| accountId | Number | Distributor account ID. |
| passwordLength | Number | Password length setting. |
| showingFields | String | Set of fields to display in the form. |
| field-titles | String | Changes the display labels of fields. |
| optional-fields | Array | Defines fields that do not need to be filled in. |
| force-fields | Array | Contains values that are not shown to the user but are still sent to the server. |
| otp-confirm | String | Controls whether confirmation is needed for a field. Use true for required confirmation, false if confirmation is not needed, optional if the confirmation window should appear but not be required, and if-filled to show it only when the field has been filled in. |
OTP dialogs Texts
Text shown in OTP dialogs can be changed.
text-retry-in
Text shown while the resend timer is counting down to the next code request.
- Placeholder:
{0}is replaced with the number of seconds remaining. - Default in EN:
"You can request a new code in {0} seconds."
text-retry-now
Text for the link that appears after the timer ends, allowing the code to be requested again.
- Default in EN:
"Request code again"
Usage example
<ui-register-member
:profile-fields="['email', 'partner', 'phone', 'country_id', 'region_id']"
:optional-fields="['partner', 'phone']"
:field-titles="{ 'partner': 'Custom partner code' }"
:input-properties="{ variant: 'outlined' }"
:force-fields="{ 'title' : 'Mr. Forced', 'lastname': 'Overriden' }"
:otp-confirm="{
'email': true,
'phone': 'optional'
}"
:check-uniqueness-before-otp="true"
></ui-register-member>