Skip to content

Choice field shows raw value instead of label in detail view #461

@FrantisekAdastra

Description

@FrantisekAdastra

Plugin Version

0.4.9

NetBox Version

4.5.7

Python Version

3.12.3

Steps to Reproduce

  1. Go to Customization → Custom Field Choices and create a Choice Set
    where Value and Label differ (e.g. value: "3rd_party_open_source",
    label: "Self-hosted 3rd Party Open Source SW")
  2. Create a Custom Object Type with a field of type "Selection" using
    this Choice Set
  3. Create a Custom Object instance and select one of the choices
  4. Save and view the object detail page

Expected Behavior

The detail view should display the human-readable Label
(e.g. "Self-hosted 3rd Party Open Source SW")

Observed Behavior

The detail view displays the raw Value from the database (e.g. "3rd_party_open_source") instead of the Label.
The edit form correctly shows the Label in the dropdown, so the issue is only in the read/detail view rendering.

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions