← All patterns
Forms

Compound-value picker

Added · Updated

One grouped select whose option value carries both the kind of thing and its id, so someone names the thing they already had in mind instead of first answering a question about categories that only the schema cares about.

Reach for it when building

  • assigning a record to a person or a group
  • picking an owner that may be a user or a team
  • choosing a payee that may be a person or a company
  • attaching an appointment to a family member or a pet
  • selecting a destination that may be a folder or a tag
  • any field whose target can be one of several types
  • select
  • optgroup
  • polymorphic
  • forms
  • dependent-fields
  • keyboard