How to programmatically set custom field data in the form for creating a new Prefix #19948
Unanswered
sstojanovic-godaddy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Netbox v4.2.3
Working on a plugin to dynamically pre-populate some fields in the Prefix form based on the parent object.
I implemented a custom
alter_object
method on thePrefixEditView
.The issue is that custom field data that I set this way is not displayed on the form. Other fields (Site, VLAN etc...) work just fine.
My code (simplified):
Is there another (better) way to achieve this or am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions