Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Different text in value and picklist in selectitem

    Hi,

    in your showcase you have SelectItem example where you have a longer title text in the picklist than when an item is selected, for example the "Special Values" example.

    However, those examples are all for datasource bound items.

    I have a SelectItem where i've just added all values with setValueMap().

    However, i am trying to see if it's possible to display longer descriptions in the picklist, but show a shorter description in the formitem when an item has been selected. Since the valuemap seems to have to contain only strings as values, nor can i find any "setPickListvalueMap" or similar method, i am not sure how to realize this.

    Is it possible?

    #2
    Hi mathias,

    why don't you do a Client-only DataSource with 3 fields, like in the samples in the showcase, e.g. here? Bit more code, but should solve your usecase.

    Best regards
    Blama

    Comment


      #3
      Not a bad idea, i'll try it. Thanks!

      Comment

      Working...
      X