Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing a Custom Field with Default Value does not pre-populate form with correct value #18557

Open
mattg66 opened this issue Feb 3, 2025 · 0 comments
Labels
status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application

Comments

@mattg66
Copy link

mattg66 commented Feb 3, 2025

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.

@mattg66 mattg66 added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

1 participant