[bug]: Display name field does not allow spaces
@vihar is already working on this.
Since May 21, 2026.
- Dominant language
- TypeScript
- Stars
- 59.6k
- Forks
- 5.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
The Display name field does not allow spaces, even though a display name should support full human-readable names.
Currently, the field only allows:
- letters
- numbers
- periods
- hyphens
- underscores
Because of this validation, names like Name Of User, John Doe, Maria Silva cannot be used as display names.
Current behavior
When editing a user profile, the Display name field rejects values containing spaces.
Example value:
NAME OF USER
The UI shows the following validation error:
Display name can only contain letters, numbers, periods, hyphens, and underscores
This makes the Display name behave like a username, slug, or handle instead of a real display name.
Steps to reproduce
The Display name field should allow spaces and common characters used in personal names.
Valid examples should include:
John Doe
Maria Silva
Name Of User
Restrictions such as "no spaces" should apply to fields like username, handle, slug, or mention name, not to display_name.
Why this is a bug
A display name is meant to be shown in the interface as a readable user name.
The current validation makes user names harder to read in professional workspaces, especially when users have first and last names.
Also, the API already treats display_name as a full display value, so the UI validation appears to be inconsistent with the API behavior.
Steps to reproduce
- Open the user profile settings.
- Go to the name/profile section.
- Set:
- First name:
NAME - Last name:
USER - Display name:
NAME OF USER
- First name:
- Try to save the profile.
Actual result
The form rejects the display name and shows:
Display name can only contain letters, numbers, periods, hyphens, and underscores
Expected result
The profile should accept NAME OF USER as a valid display name.
Suggested fix
Update the frontend validation rule for display_name to allow spaces.
The stricter validation rule should be kept only for username-like fields, such as:
- username
- handle
- slug
- mention name
The display_name field should be validated as a readable name, not as an identifier.
Additional context
This issue affects the user experience in business workspaces because real names are commonly displayed with spaces.
Example:
Maria Silva
Displaying names without spaces or forcing users to use underscores/hyphens makes the interface look less natural and less professional.
Environment
Production
Browser
None
Variant
Self-hosted
Version
2.6.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.