Button with modal pop up to custom fields #1873

Closed
opened 2025-12-29 17:19:58 +01:00 by adam · 5 comments
Owner

Originally created by @andershagman on GitHub (Jul 27, 2018).

Environment

  • Python version: 3.6.5
  • NetBox version: 2.3.7

Proposed Functionality

Add a button to custom fields, or any field, as done with traffic graphs that trigger a modal pop up.
The function will hand over object information imbedded in an url.

Use Case

Simple way to make interactive registrations in foreign systems.
Ex: DNS, DHCP or ISE mac registration
The url trigger a foreign systems form inside the modal.
In this way it can support any system as long as the form can be shown correctly in the modal.

Database Changes

External Dependencies

Non as I can see.

Originally created by @andershagman on GitHub (Jul 27, 2018). <!-- NOTE: This form is only for proposing specific new features or enhancements. If you have a general idea or question, please post to our mailing list instead of opening an issue: https://groups.google.com/forum/#!forum/netbox-discuss NOTE: Due to an excessive backlog of feature requests, we are not currently accepting any proposals which significantly extend NetBox's feature scope. Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.6.5<!-- Example: 3.5.4 --> * NetBox version: 2.3.7<!-- Example: 2.3.6 --> <!-- Describe in detail the new functionality you are proposing. Include any specific changes to work flows, data models, or the user interface. --> ### Proposed Functionality Add a button to custom fields, or any field, as done with traffic graphs that trigger a modal pop up. The function will hand over object information imbedded in an url. <!-- Convey an example use case for your proposed feature. Write from the perspective of a NetBox user who would benefit from the proposed functionality and describe how. ---> ### Use Case Simple way to make interactive registrations in foreign systems. Ex: DNS, DHCP or ISE mac registration The url trigger a foreign systems form inside the modal. In this way it can support any system as long as the form can be shown correctly in the modal. <!-- Note any changes to the database schema necessary to support the new feature. For example, does the proposal require adding a new model or field? (Not all new features require database changes.) ---> ### Database Changes <!-- List any new dependencies on external libraries or services that this new feature would introduce. For example, does the proposal require the installation of a new Python package? (Not all new features introduce new dependencies.) --> ### External Dependencies Non as I can see.
adam closed this issue 2025-12-29 17:19:58 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 27, 2018):

This seems needlessly complicated. Why not just link to the external form?

@jeremystretch commented on GitHub (Jul 27, 2018): This seems needlessly complicated. Why not just link to the external form?
Author
Owner

@mmahacek commented on GitHub (Jul 31, 2018):

I would like to have a way to include links to outside systems, but the link should open in a new window, not inside Netbox. I think this would fall as a use case for having externals links available.
https://github.com/digitalocean/netbox/issues/969

@mmahacek commented on GitHub (Jul 31, 2018): I would like to have a way to include links to outside systems, but the link should open in a new window, not inside Netbox. I think this would fall as a use case for having externals links available. https://github.com/digitalocean/netbox/issues/969
Author
Owner

@andershagman commented on GitHub (Jul 31, 2018):

My proposal perhaps isn't the best but as "mmahacek" says a link to external sites would be super and in a new window. Why I proposed a modal pop up is just from a users perspective not getting lost in the "web". But also the ability to insert variables as in the picture below. The custom field DNS-reg is an url field but does not allow a node part. The Plats field is text and not a url. The comments field cut the url in half.

image

@andershagman commented on GitHub (Jul 31, 2018): My proposal perhaps isn't the best but as "mmahacek" says a link to external sites would be super and in a new window. Why I proposed a modal pop up is just from a users perspective not getting lost in the "web". But also the ability to insert variables as in the picture below. The custom field DNS-reg is an url field but does not allow a node part. The Plats field is text and not a url. The comments field cut the url in half. ![image](https://user-images.githubusercontent.com/20284974/43446533-6e315bfa-94a9-11e8-9f55-38e6aa6ab6ba.png)
Author
Owner

@mmahacek commented on GitHub (Jul 31, 2018):

Did you take a look at issue 969 I linked in my previous message?

@mmahacek commented on GitHub (Jul 31, 2018): Did you take a look at issue 969 I linked in my previous message?
Author
Owner

@andershagman commented on GitHub (Jul 31, 2018):

Yes, and it would be sufficient.

@andershagman commented on GitHub (Jul 31, 2018): Yes, and it would be sufficient.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1873