Editing a Custom Field with Default Value does not pre-populate form with correct value #18557
Labels
status: needs triage
This issue is awaiting triage by a maintainer
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
NetBox Docker
NetBox Version
v4.2.2
Python Version
3.10
Steps to Reproduce
Create a custom field with a selection type.
Populate the default value with a string such as "Test"
Save the custom field.
Edit the custom field and the Default Value is populated with Test without the quotations, leading to the forms validation failing. Manually adding the quotations to read "Test" allows the form to be submitted
Expected Behavior
The Default Value textarea should be populated with valid JSON
Observed Behavior
The Default Value textarea is not populated with valid JSON leading to the form validation failing.
The text was updated successfully, but these errors were encountered: