Add a to field type based on ColorChoices with associated widget to Custom Fields
NetBox version
v4.3.1
Feature type
Change to existing functionality
Proposed functionality
It's not currently possible to use colors effectively in Custom Fields. You can use create a select field and add a custom selection set, but it isn't currently possible to view those colors using the existing form widget.
I'm proposing to add an additional custom field type for color selection using the existing color choices making it possible to add a color selection to custom fields.
As an alternative approach, allow for overriding of which widget is used for a field and make the color choices available as a custom field base choice set (e.g. like IATA codes etc). This would provide greater flexibility and permit users to use custom color sets.
Use case
I have a requirement to assign color classifications to VRFs and some other models to enable some reporting outside of netbox.
This is presently done using a custom field, and I've manually extracted all the colours used by NetBox into extra field set, however, there is no rendering of the colors in the UI.
Database changes
None
External dependencies
None
I don't mind picking this up...
Although I would appreciate with a steer as to whether it would be better for a new field type or allowing a custom widget?
@jnovinger any particlar thoughts on which way would an apporpriate 'netbox' way of doing this?
it would be nice when adding a choice set to be able to specify a color.
For example, choice1:First Choice:red