Skip to content

Dropdown with a list of country codes in the victim object #443

Description

@mFaou

Hello,
To facilitate the filling of the regions field, I would like to include a list of ISO 3166 country codes (specifically the 2 letters form). What would be nice, would be to be able to search for either the country name or the 2 letters code, and then it would fill the code.

However, it seems that with the sane_default attribute, the same text is displayed in the drop-down and then filled. Is it somehow possible to do something like an HTML select tag, with a different option value and displayed value? For instance:

<option value="lu">Luxembourg (lu)</option>

If it's not a good idea, let me know as well :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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