Add quick add button for Custom Field Choices within object edit page. #10978

Open
opened 2025-12-29 21:38:43 +01:00 by adam · 2 comments
Owner

Originally created by @Andres1357 on GitHub (Apr 2, 2025).

NetBox version

v4.2.4

Feature type

New functionality

Proposed functionality

Hello,

I'd like to propose an addition to the UI for entering custom field data such that CFs which use choice sets (Selection & Multi Selection) show a quick add button next to them which allows for adding an entry to the relevant choice set. This would be somewhat similar to existing quick add workflows, like adding a region from site's UI, except it would modify an existing CF choice set object. The pop up UI could have just one text box similar to the Extra choices box in CF choice sets UI.

Image
Image

This new button would only display if the user has write permissions for CF choice sets.

Optionally, there could be a new field in the custom field choice set to selectively enable this button.
Image

Use case

This feature would make it more enticing to use choice set fields over a basic text field as everyday users wouldn't need to figure out how to add a new entry. We ran into this decision for tracking grant IDs for ISP sites. The list of IDs is relatively limited but will keep growing and one ID might apply to multiple sites. Currently, using a choice set CF would be a better experience than a text field for users except when it comes to adding a new entry.

Database changes

Optional new field under custom field choice sets called something like allow_quick_add_entries.

External dependencies

No response

Originally created by @Andres1357 on GitHub (Apr 2, 2025). ### NetBox version v4.2.4 ### Feature type New functionality ### Proposed functionality Hello, I'd like to propose an addition to the UI for entering custom field data such that CFs which use choice sets (Selection & Multi Selection) show a quick add button next to them which allows for adding an entry to the relevant choice set. This would be somewhat similar to existing quick add workflows, like adding a region from site's UI, except it would modify an existing CF choice set object. The pop up UI could have just one text box similar to the Extra choices box in CF choice sets UI. ![Image](https://github.com/user-attachments/assets/dc1b17aa-d239-496d-9b23-3099896ee3ee) ![Image](https://github.com/user-attachments/assets/4c3c1ac3-2877-427e-82ef-44d9e1645f43) This new button would only display if the user has write permissions for CF choice sets. Optionally, there could be a new field in the custom field choice set to selectively enable this button. ![Image](https://github.com/user-attachments/assets/7803ac35-dbcd-4bef-ad6d-3b373ce0729f) ### Use case This feature would make it more enticing to use choice set fields over a basic text field as everyday users wouldn't need to figure out how to add a new entry. We ran into this decision for tracking grant IDs for ISP sites. The list of IDs is relatively limited but will keep growing and one ID might apply to multiple sites. Currently, using a choice set CF would be a better experience than a text field for users except when it comes to adding a new entry. ### Database changes Optional new field under custom field choice sets called something like `allow_quick_add_entries`. ### External dependencies _No response_
adam added the type: featurecomplexity: mediumnetboxstatus: backlog labels 2025-12-29 21:38:43 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 3, 2025):

This would be somewhat similar to existing quick add workflows, like adding a region from site's UI, except it would modify an existing CF choice set object.

While the workflow is similar, this would not have any overlap with an existing implementation; it would be a totally new pattern FYI. Custom field choices aren't even managed as discrete objects, but as data belonging to a choice set object. The proposed behavior would require an entirely new view and form.

@jeremystretch commented on GitHub (Apr 3, 2025): > This would be somewhat similar to existing quick add workflows, like adding a region from site's UI, except it would modify an existing CF choice set object. While the workflow is similar, this would not have any overlap with an existing implementation; it would be a totally new pattern FYI. Custom field choices aren't even managed as discrete objects, but as data belonging to a choice set object. The proposed behavior would require an entirely new view and form.
Author
Owner

@bctiemann commented on GitHub (Apr 3, 2025):

Let's keep the "allow quick adding choices from object" toggle out of scope for this FR though.

@bctiemann commented on GitHub (Apr 3, 2025): Let's keep the "allow quick adding choices from object" toggle out of scope for this FR though.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10978