Skip to content

Allow select options to display different string than value #1

Description

@regisphilibert

Currently the list of optoins is a slice of strings:

  options:
  - Alabama
  - California

will produce

<select name="test">
  <option value="Alabama">Alabama</option>
  <option value="California">California</option>
</select>

We need to spec up a UX so user can have something like this:

<select name="test">
  <option value="AL">Alabama</option>
  <option value="CA">California</option>
</select>

Golang order map keys by alpha, preventing user from imposing an order so

options:
  al: Alabaa
  ca: California

is out of the question.

We could use comma separated strings

options:
  - 'al: Alabama'
  - 'ca: California'

But this means, no option text could ever contain semi columns...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions