RocketChat / RocketChat/Rocket.Chat

Custom field shows node name instead of label title

Open
#25,171 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

If I create a custom field in "accounts" I see the node name in the input form, instead of the label title.

Steps to reproduce:
  1. Go to accounts and enter in "Custom Fields to Show in User Info" this values:
    [{"Team":"Team"},{"Job Titel":"JobDescription"}]
  2. Scroll down to Registration and enter this into the the custom fields textarea:
{
  "Team": {
    "type": "text",
    "required": false,
    "minLength": 2,
    "public": true
  },
  "JobDescription": {
    "type": "text",
    "required": false,
    "minLength": 2,
    "public": true
  }
}
  1. Then the account input looks like this:
Bildschirmfoto 2022-04-13 um 13 37 56

And the output like this:
Bildschirmfoto 2022-04-13 um 13 50 04

Expected behavior:

The input field "JobDescrition" should habe a label with the title "Job Titel".

Server Setup Information:
  • Version of Rocket.Chat Server: V4.5.2 & V4.6.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Accounts settings and Registration custom-fields flow described in the reproduction steps, then reproduce the account input with the Team and JobDescription fields. Trace how the configured node names are mapped to displayed labels; done means the JobDescription input and resulting account view show the title “Job Titel” while the field key remains JobDescription.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.