Allow for base choices only in CustomFieldChoices #8407

Closed
opened 2025-12-29 20:36:20 +01:00 by adam · 1 comment
Owner

Originally created by @rodvand on GitHub (Aug 3, 2023).

NetBox version

v3.6-beta1

Feature type

Change to existing functionality

Proposed functionality

Remove the required flag on the Extra Choices field on Custom Field Choices.

Use case

If I want a custom field with only the airport codes, I don't want to add any extra choices. I would like to select the Base Choices and leave it at that. Currently I am forced to add an extra choice to be able to use the base choices.

Database changes

I assume it means the extra choices field must be set to not required. It will however need extra validation to make sure you either choose a set of base choices or add some extra choices.

External dependencies

No response

Originally created by @rodvand on GitHub (Aug 3, 2023). ### NetBox version v3.6-beta1 ### Feature type Change to existing functionality ### Proposed functionality Remove the required flag on the Extra Choices field on Custom Field Choices. ### Use case If I want a custom field with only the airport codes, I don't want to add any extra choices. I would like to select the Base Choices and leave it at that. Currently I am forced to add an extra choice to be able to use the base choices. ### Database changes I assume it means the extra choices field must be set to not required. It will however need extra validation to make sure you either choose a set of base choices or add some extra choices. ### External dependencies _No response_
adam added the type: bugstatus: acceptedbeta labels 2025-12-29 20:36:20 +01:00
adam closed this issue 2025-12-29 20:36:21 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 3, 2023):

This field is meant to be optional (and is on the model itself). Looks like a bug with the form.

@jeremystretch commented on GitHub (Aug 3, 2023): This field is meant to be optional (and is on the model itself). Looks like a bug with the form.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8407