netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Public demo: https://demo.netbox.dev
http://netboxlabs.com/oss/netbox/
Apache License 2.0
15.36k stars 2.49k forks source link

Dynamically render the custom field form based on the selected type #14656

Open jeremystretch opened 6 months ago

jeremystretch commented 6 months ago

NetBox version

v3.7.0

Feature type

New functionality

Proposed functionality

Employ HTMX to re-render the custom field form, displaying only fields relevant to the selected field type. For instance, the "object type" field should be displayed only for object selection types, and the "choices" field should be displayed only for select and multi-select fields.

Use case

This will simplify the form, omitting irrelevant fields.

Database changes

None

External dependencies

None

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.