Issue
- When creating new users, some fields (such as first name and last name) are mandatory, marked with a red asterisk.
- How can one specify the mandatory fields?
Environment
- Quarterly Release 2024.Q1, 2024.Q2, 2024.Q3
Resolution
- A while back there was the portal property
users.last.name.required
, with valuetrue
orfalse
, used to specify last name as a mandatory field or not, respectively. - In this breaking change the property was removed in favor of the language property
lang.user.name.required.field.names
, whose default value islast-name
. - Since the appearance of the Language Override tool it's possible to easily change the values of keys for different languages. To make last name non-mandatory, edit the value fo the key
lang.user.name.required.field.names
to be justfirst-name
.- Note: For most of the language keys, changes in the translations take effect immediately, but the key
lang.user.name.required.field.names
is loaded once at the start, so for the changes to be visible the portal needs to be restarted.
- Note: For most of the language keys, changes in the translations take effect immediately, but the key
Additional Information
- The fields present in the user creation form are controlled by the property
lang.user.name.field.names
, which can also be modified using Language Override.