Allow plugins to inject additional form fields into a core object form (Edit, Delete, etc) #9848

Closed
opened 2025-12-29 21:23:30 +01:00 by adam · 1 comment
Owner

Originally created by @DanSheps on GitHub (Jun 14, 2024).

NetBox version

v4.0.5

Feature type

New functionality

Proposed functionality

The proposed change would be to allow plugins to inject form fields into core object form views (Edit, Import, BulkEdit, Delete). How this is done could be implemented either on the view or within the view's own form.

There would need to be method to register the integration into a specific form as well as something in place to verify there are no conflicts between core fields and the plugin injected fields

Use case

Sometimes, the provided fields within a form are not enough to track certain types of information for an organization. Allowing plugins to extend the Edit, BulkEdit and Delete views to add additional form fields which are saved to the plugin(s) models allows more flexibility beyond custom fields.

An example would be with Interfaces and carrying more layer 2 configuration data compared to what is currently permitted on the model or allowing more advanced relationships to be defined.

This could also in theory allow plugins to integrate with other plugins.

Database changes

None, this would purely be a change to the way form views are rendered

External dependencies

None

Originally created by @DanSheps on GitHub (Jun 14, 2024). ### NetBox version v4.0.5 ### Feature type New functionality ### Proposed functionality The proposed change would be to allow plugins to inject form fields into core object form views (Edit, Import, BulkEdit, Delete). How this is done could be implemented either on the view or within the view's own form. There would need to be method to register the integration into a specific form as well as something in place to verify there are no conflicts between core fields and the plugin injected fields ### Use case Sometimes, the provided fields within a form are not enough to track certain types of information for an organization. Allowing plugins to extend the Edit, BulkEdit and Delete views to add additional form fields which are saved to the plugin(s) models allows more flexibility beyond custom fields. An example would be with Interfaces and carrying more layer 2 configuration data compared to what is currently permitted on the model or allowing more advanced relationships to be defined. This could also in theory allow plugins to integrate with other plugins. ### Database changes None, this would purely be a change to the way form views are rendered ### External dependencies None
adam added the type: featurestatus: duplicate labels 2025-12-29 21:23:30 +01:00
adam closed this issue 2025-12-29 21:23:30 +01:00
Author
Owner

@DanSheps commented on GitHub (Jun 14, 2024):

I am an idiot, I already opened this

@DanSheps commented on GitHub (Jun 14, 2024): I am an idiot, I already opened this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9848