Skip to main content
Answered

Define keys for a DropDown


Forum|alt.badge.img+5

Hello,

I have created a dropdown with a list of countries as the values.
I am wondering if I can define the keys, using the iso code of the countries

Best answer by Liz

Ah, got it, @jeremielp ! We don’t have this feature, but I can share this with the product team. 

View original

5 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14604 replies
  • February 8, 2023

Hi again, @jeremielp ! If you’re referencing the letter on each dropdown option, this isn’t possible to adjust at this time. 


Forum|alt.badge.img+5
  • Author
  • Community Wizard
  • 127 replies
  • February 9, 2023


No, that was not what i was referring to.

I was referring to be able to get a different value than what is displayed in the form.

For example, if I select Spain in a standard dropdown, the form will send me back ES, which is the ISO code, instead of the text that the user sees.

<select name="countries" id="countries">
  <option value="FR">France</option>
  <option value="US">USA</option>
  <option value="ES">Spain</option>
  <option value="CL">Chile</option>
</select>


My main use case is the country dropdown. Why is that important? My websites usually have 2/3 languages, so getting the name of the country in the local language instead of the ISO code means having mapping tables for each language, while I could just get the data straight at first.

That could be fixed by having, in the Dropdown definition something like this

FR|France
US|USA
ES|Spain
CL|Chile

key|text_to_show_to_user


If you can't/don't want to add such a broad feature, an alternative would be to have a "Country" question, or a dropdown in the "Contact" card for the field country. You have already built a Country dropdown for the international part of the phone field, so that would great to be able to use this separately.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14604 replies
  • Answer
  • February 9, 2023

Ah, got it, @jeremielp ! We don’t have this feature, but I can share this with the product team. 


  • Navigating the Land
  • 2 replies
  • September 9, 2024

Hi  @Liz, this feature is asked since years. Do you have any ETA ?
I don’t see why this basic feature is still not released and why there is no decent workaround at that moment.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14604 replies
  • September 18, 2024

Hi @mickaelandrieu Thanks for stopping by! We have a couple of other features that we’re working on that have more requests. However, if this does get added, you’ll hear about it here first!


Reply