Ability to search for unset custom fields #3532

Closed
opened 2025-12-29 18:29:45 +01:00 by adam · 2 comments
Owner

Originally created by @u1735067 on GitHub (Apr 2, 2020).

Environment

  • Python version: 3.7.7
  • NetBox version: 2.7.10

Proposed Functionality

In objects list, UI allow to look for objects fields and custom fields, but while for objects fields it is possible to look for objects without set value when optional (=None), it is not possible for custom fields: there's no "None" option and for non-select fields (text, integer, date at least) there's no possibility to select a potential "None" value.
So the request is: could it be possible to add ability to search for objects without custom value set?

Use Case

There might be many, but here it is that we're importing datas from another, not complete, inventory and some fields (added as custom because not native) are not set, either because it's a mistake, or because it's a temporary situation not having a value for this field (new item for example).
It is desirable to be able to list those objects, either because it is now possible to fix the initial import, or because that's how users work and this item should be findable on this criteria.
A possible workaround is to add "placeholder" values when no set value ("N/A", -1, 1987-6-5 for examples), but that doesn't feel right.

Database Changes

Already supported in the DB

External Dependencies

?

Implementation notes

Like said, while for select field it should be easy ("None" value like the others), I don't really see how this should be implemented in the UI for integer, date and text fields: a checkbox ?

Originally created by @u1735067 on GitHub (Apr 2, 2020). ### Environment * Python version: 3.7.7 * NetBox version: 2.7.10 <!-- Describe in detail the new functionality you are proposing. Include any specific changes to work flows, data models, or the user interface. --> ### Proposed Functionality In objects list, UI allow to look for objects fields and custom fields, but while for objects fields it is possible to look for objects without set value when optional (=None), it is not possible for custom fields: there's no "None" option and for non-select fields (text, integer, date at least) there's no possibility to select a potential "None" value. So the request is: could it be possible to add ability to search for objects without custom value set? <!-- Convey an example use case for your proposed feature. Write from the perspective of a NetBox user who would benefit from the proposed functionality and describe how. ---> ### Use Case There might be many, but here it is that we're importing datas from another, not complete, inventory and some fields (added as custom because not native) are not set, either because it's a mistake, or because it's a temporary situation not having a value for this field (new item for example). It is desirable to be able to list those objects, either because it is now possible to fix the initial import, or because that's how users work and this item should be findable on this criteria. A possible workaround is to add "placeholder" values when no set value ("N/A", -1, 1987-6-5 for examples), but that doesn't feel right. ### Database Changes Already supported in the DB ### External Dependencies ? ### Implementation notes Like said, while for select field it should be easy ("None" value like the others), I don't really see how this should be implemented in the UI for integer, date and text fields: a checkbox ?
adam closed this issue 2025-12-29 18:29:45 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 3, 2020):

So the request is: could it be possible to add ability to search for objects without custom value set?

Feature requests need to convey a specific proposal. It seems like you have a rough idea of what you want to achieve, but you don't fully describe the implementation. Please expand your feature request to specify exactly what filter and UI changes you are proposing, if you're not sure, close it and raise the topic on the mailing list for discussion.

@jeremystretch commented on GitHub (Apr 3, 2020): > So the request is: could it be possible to add ability to search for objects without custom value set? Feature requests need to convey a specific proposal. It seems like you have a rough idea of what you want to achieve, but you don't fully describe the implementation. Please expand your feature request to specify _exactly_ what filter and UI changes you are proposing, if you're not sure, close it and raise the topic on the [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss) for discussion.
Author
Owner

@jeremystretch commented on GitHub (Apr 13, 2020):

Closing due to lack of activity.

@jeremystretch commented on GitHub (Apr 13, 2020): Closing due to lack of activity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3532