Skip to content

Allow filtering of ObjectVar and MultiObjectVar input selections for custom fields #18138

@sounddudenz

Description

@sounddudenz

NetBox version

v4.1.2

Feature type

New functionality

Triage priority

I volunteer to perform this work (if approved)

Proposed functionality

This is very simular to #17944

Proposing to extend the functionality of the object selection inputs (ObjectVar and MultiObjectVar) in Custom Fields to be able to filter the selection in the same fashion that's available in the create/edit forms.

image

Suggest adding the optional parameters selector (boolean with a default of False).

Use case

I wanted to add a custom field to "Provider Network" to assign a Network to a Interface. Adding the custom field Interface worked well, but just shows all the interfaces which is unusable. A selection filter would make this much easier to use so we could filter on a device and then choose the interface.

Database changes

None

External dependencies

None

Metadata

Metadata

Assignees

Labels

complexity: mediumRequires a substantial but not unusual amount of effort to implementstatus: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions