Skip to content

Custom Field UI visibility option "Hidden if unset" #12597

@eric-eisenhart

Description

@eric-eisenhart

NetBox version

v3.5.1

Feature type

Change to existing functionality

Proposed functionality

On the custom-fields edit page, add "Hidden if unset" option to the "UI visibility" selection, and on the object view page, if that's set on definition of a custom field and the field is unset hide that custom field (instead of showing -).

Use case

We have devices managed by a few groups with different needs, and we're using custom fields to help with some of that. This would keep the display of a device (or virtual-machine) cleaner when custom fields aren't used on a specific device.

Use cases are similar to #12423, but I suspect the code would be much simpler.

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions