Change from name of custom fields to label in the search page #7722

Closed
opened 2025-12-29 20:27:29 +01:00 by adam · 4 comments
Owner

Originally created by @haki99 on GitHub (Mar 6, 2023).

NetBox version

v3.4.5

Feature type

Change to existing functionality

Proposed functionality

When I search for any data which are existing in a custom field, the opened search page shows the name of the custom field, not the label.

For example in my case:

  • "cf_contact_person", not "Contact Person"
  • "cf_it_responsible", not "IT Responsible"

image

It would be better if it shows the label of the custom field, because it will increase the readability of the search results for all the users, especially for the non-admin users.

Use case

It will increase the readability of the search results for all the users, especially for the non-admin users.

Database changes

Change in the search query is necessary for this feature change.

External dependencies

No need to add or modify external dependecies.

Originally created by @haki99 on GitHub (Mar 6, 2023). ### NetBox version v3.4.5 ### Feature type Change to existing functionality ### Proposed functionality When I search for any data which are existing in a custom field, the opened search page shows the name of the custom field, not the label. For example in my case: - "cf_contact_person", not "Contact Person" - "cf_it_responsible", not "IT Responsible" ![image](https://user-images.githubusercontent.com/51157531/223077286-08e94ca3-1be8-44b9-9cad-b2a23a2ad296.png) It would be better if it shows the label of the custom field, because it will increase the readability of the search results for all the users, especially for the non-admin users. ### Use case It will increase the readability of the search results for all the users, especially for the non-admin users. ### Database changes Change in the search query is necessary for this feature change. ### External dependencies No need to add or modify external dependecies.
adam added the type: featurestatus: needs ownerpending closure labels 2025-12-29 20:27:29 +01:00
adam closed this issue 2025-12-29 20:27:29 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (Mar 10, 2023):

I think this makes sense, open for anyone who wants to give it a shot. Beware that it might require a reindex.

@kkthxbye-code commented on GitHub (Mar 10, 2023): I think this makes sense, open for anyone who wants to give it a shot. Beware that it might require a reindex.
Author
Owner

@jeremystretch commented on GitHub (Mar 16, 2023):

I see two issues with this:

  1. The custom fields would need to be retrieved separately and their labels applied to the search results, imposing additional overhead.
  2. Custom field labels are not required to be unique (whereas names are). This can lead to confusion when a user interprets two discrete fields as one.
@jeremystretch commented on GitHub (Mar 16, 2023): I see two issues with this: 1. The custom fields would need to be retrieved separately and their labels applied to the search results, imposing additional overhead. 2. Custom field labels are not required to be unique (whereas names are). This can lead to confusion when a user interprets two discrete fields as one.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 15, 2023):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Jun 15, 2023): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Jul 15, 2023):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Jul 15, 2023): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7722