Skip to content

Dropdown widgets for required fields should not include a "clear" button #18955

@jeremystretch

Description

@jeremystretch

Deployment Type

NetBox Cloud

NetBox Version

v4.2.5

Python Version

3.10

Steps to Reproduce

In many forms (the site edit form, for instance), required choice fields include a "clear" button (an X within a circle) toward the righthand side of the field which clears any selected value.

Image

Expected Behavior

It should not be possible to clear the selected value of a field for which a value must be specified. The presence of the "clear" button may be confusing to the user.

The clear button is a Tom Select plugin. It can be disabled for required fields by altering the logic here.

Observed Behavior

See above.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions