Only first 100 objects listed in ObjectVar fields #11097

Closed
opened 2025-12-29 21:40:16 +01:00 by adam · 3 comments
Owner

Originally created by @GoepiGB on GitHub (Apr 29, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.2.8

Python Version

3.10

Steps to Reproduce

  1. Create a custom script
  2. Add an ObjectVar field like this:
    site = ObjectVar( model = Site )
  3. Run the script

Expected Behavior

Being able to select all matching objects from the drop-down menu

Observed Behavior

The drop-down menu only lists the first 100 objects, the same as if you requested the API endpoint without any additional parameters.

Image

Image

Originally created by @GoepiGB on GitHub (Apr 29, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.2.8 ### Python Version 3.10 ### Steps to Reproduce 1. Create a custom script 2. Add an ObjectVar field like this: `site = ObjectVar( model = Site )` 3. Run the script ### Expected Behavior Being able to select all matching objects from the drop-down menu ### Observed Behavior The drop-down menu only lists the first 100 objects, the same as if you requested the API endpoint without any additional parameters. ![Image](https://github.com/user-attachments/assets/b3e39d9e-3985-4769-9ff0-faf260512eb1) ![Image](https://github.com/user-attachments/assets/7c1175b4-f698-4f80-aaf4-0a7198577b44)
adam added the netbox label 2025-12-29 21:40:16 +01:00
adam closed this issue 2025-12-29 21:40:17 +01:00
Author
Owner

@antoinekh commented on GitHub (Nov 28, 2025):

This 100 value is hardcoded here
f13d028c98/netbox/project-static/src/select/dynamic.ts (L9)

Maybe we can have a default value to 100 with settings available on the configuration to give admin the option to go above that

@antoinekh commented on GitHub (Nov 28, 2025): This 100 value is hardcoded here https://github.com/netbox-community/netbox/blob/f13d028c980154bff6fcc5b4a359652671ace703/netbox/project-static/src/select/dynamic.ts#L9 Maybe we can have a default value to 100 with settings available on the configuration to give admin the option to go above that
Author
Owner

@jeremystretch commented on GitHub (Dec 5, 2025):

The 100-object limit is by design. The expectation is that, as a user, if you don't find what you're looking for in the first 100 results, searching for it by typing a few characters is typically going to be much faster than continuing to scroll through the entire list of options.

@jeremystretch commented on GitHub (Dec 5, 2025): The 100-object limit is by design. The expectation is that, as a user, if you don't find what you're looking for in the first 100 results, searching for it by typing a few characters is typically going to be much faster than continuing to scroll through the entire list of options.
Author
Owner

@jeremystretch commented on GitHub (Dec 17, 2025):

@GoepiGB I'm going to close this as I don't believe any action is needed. However, if you have a genuine use case where scrolling through 100+ items is desirable, you're welcome to submit a feature request.

@jeremystretch commented on GitHub (Dec 17, 2025): @GoepiGB I'm going to close this as I don't believe any action is needed. However, if you have a genuine use case where scrolling through 100+ items is desirable, you're welcome to submit a [feature request](https://github.com/netbox-community/netbox/issues/new?template=01-feature_request.yaml).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11097