Skip to content

should radio fields show tags that are set to an "invalid" value? #12082

@tyrasd

Description

@tyrasd

For checkbox fields, we do show the value of the respective tag in the case where it does not fit to one of the defined values (typically yes or no). This is useful for tags where there are special values that are interpreted basically the same as yes, but have a slightly different meaning like covered=arcade

Similarly, this can help for cases where the tag has a typo, or otherwise invalid/outdated value:


For radio fields, however, the behaviour is different: when a non-matching value is present, the field is rendered as if the tag was not present at all. In the screenshot below assume the feature is tagged with a hypothetical tag lifeguard=outpost, but it would also look like this for a tag with a typo lifeguard=Tower.

There should be at least a visual representation that the tag is present, but does not match the expected values (e.g. as a grayed out state and a corresponding tooltip / hover text).

Alternatively, we could do this like the check fields: Just add the unexpected value as a temporary option, like in this mock-up:

Metadata

Metadata

Assignees

No one assigned

    Labels

    fieldAn issue with a field in the user interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions