Custom choice fields should be blank initially if no default choice has been designated #4177

Closed
opened 2025-12-29 18:33:39 +01:00 by adam · 1 comment
Owner

Originally created by @itdependsnetworks on GitHub (Oct 9, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.7
  • NetBox version: 2.9.4

Proposed Functionality

The ability to create a custom field as a selection with no functional default. While there may be no defined defined default, functionally there is a default option .

Use Case

Giving the administrator the ability to ensure requestors do not blindly accept which ever the first value is in a custom field selection. As an example, an administrator may require a zone to be applied, but want to ensure that that users do not ignore the value, and simply save/update the record.

Given:
image

Currently Results in:
image

Intended state:
image

Database Changes

I do not not believe there are any.

External Dependencies

N/A

Originally created by @itdependsnetworks on GitHub (Oct 9, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.7 * NetBox version: 2.9.4 ### Proposed Functionality The ability to create a custom field as a selection with no functional default. While there may be no defined defined default, functionally there is a default option . ### Use Case Giving the administrator the ability to ensure requestors do not blindly accept which ever the first value is in a custom field selection. As an example, an administrator may require a `zone` to be applied, but want to ensure that that users do not ignore the value, and simply save/update the record. Given: ![image](https://user-images.githubusercontent.com/9260483/95528043-06024d00-09a5-11eb-8b58-4c7f27ff2096.png) Currently Results in: ![image](https://user-images.githubusercontent.com/9260483/95528498-47472c80-09a6-11eb-9dce-c9c179c39091.png) Intended state: ![image](https://user-images.githubusercontent.com/9260483/95528583-7cec1580-09a6-11eb-94c2-6ce68ed0c114.png) ### Database Changes I do not not believe there are any. ### External Dependencies N/A
adam added the type: bugstatus: accepted labels 2025-12-29 18:33:39 +01:00
adam closed this issue 2025-12-29 18:33:39 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 9, 2020):

I'm going to classify this as a bug since it's fair to say that the current behavior is likely to lead to an unintended state.

@jeremystretch commented on GitHub (Oct 9, 2020): I'm going to classify this as a bug since it's fair to say that the current behavior is likely to lead to an unintended state.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4177