Skip to content

A way to make <datalist> contain exhaustive options #591

Open
@WebWeWantBot

Description

@WebWeWantBot

title: A way to make contain exhaustive options
date: 2022-11-29T05:16:01.978Z
submitter: Zacky Ma
number: 63859591efcacd02a297cd3d
tags: [ ]
discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/
status: [ discussing || in-progress || complete ]
related:

  • title:
    url:
    type: [ article || explainer || draft || spec || note || discussion ]

(Sorry for submitting a duplicated entry, but I put the wrong email, zacky@marchbbox.com. This entry has the correct email, zacky@marchbox.com)

Current contains options that are permissible or recommended. But often we want it to contain the exhaustive options, meaning a user has to choose one of the options in the given , if the related receives a value that is not on this list, the should be considered invalid.

The use case for this is pretty much the same as or a radio button group. The difference is that, combining an and a makes it easier to find a value. This is particularly useful for form fields like "Country", "State", etc.

The alternative could be, improving the element, to make it searchable. But I do feel limiting to recommended options only is a missed opportunity. We could have multiple ways of achieving the same goal, e.g. = radio button group; = checkbox group. If posted, this will appear at https://webwewant.fyi/wants/63859591efcacd02a297cd3d/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions