Dropdown option value + option display

  • Marc Ozin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 1 month ago #12731 by Marc Ozin
Dropdown option value + option display was created by Marc Ozin
when creating dropdown custom fields, the option values are also the displayed items in the dropdown.
Can we put in option values and option display text separately?

For instance you may have a dropdown to select a month like Jan, Feb, Mar, Apr, etc.
However the value you want to store is not the month name but the number of the month like 1, 2, 3, 4 etc.

Can I suggest that these could be entered by a delimiter between value and display. Something like this:
1|Jan
2|Feb
3|Mar
4|Apr


If the | delimiter is present, the component can then have a field value and display text for each option.
If no delimiter is present, the field value and display text can be one and the same.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc