Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for customfield static choices with multiple select #6035

Closed
Urth opened this issue Mar 23, 2021 · 1 comment
Closed

Add support for customfield static choices with multiple select #6035

Urth opened this issue Mar 23, 2021 · 1 comment
Labels
status: duplicate This issue has already been raised type: feature Introduction of new functionality to the application

Comments

@Urth
Copy link
Contributor

Urth commented Mar 23, 2021

NetBox version

v2.10.4

Feature type

New functionality

Proposed functionality

Add support for custom field static choices with multiple select.

This resembles #2522 which was rejected before but with the revamp of custom fields this use case is much easier to support. Effectively it only adds a new type that uses a MultipleChoiceField and the StaticSelect2Multiple widget.

Note that CSV import is not yet supported because of #3637 and the multiple select custom fields are explicitly excluded.

Use case

It adds custom fields with multiple selection to allow for feature flags and similar properties while reducing the selection scope to the options given. In the past this was only supported with tags. But the downside of tags are that if your choices are different per model you need to validate them, add tags per model or train your users to only use choice X for model Y.

Now you can add a field with a specific set of choices and those are the only ones available to the user.

Database changes

No database changes required

External dependencies

No external dependencies required

@Urth Urth added the type: feature Introduction of new functionality to the application label Mar 23, 2021
@jeremystretch
Copy link
Member

This looks like a duplicate of #5451, which has already been implemented for the upcoming v2.11 release.

@jeremystretch jeremystretch added the status: duplicate This issue has already been raised label Mar 29, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: duplicate This issue has already been raised type: feature Introduction of new functionality to the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants