HI!

      I would like to have an option for a list of choises behind with a different value,

      Like this:

      <option value="415">HEAD</option>

      Groovy:

      return ["HEAD:415"];

      Can you please implement it?

       

       

          [JENKINS-47785] Different option and value

          Hi tt24

          You can return a Map instead of a List. The map entry keys will be the values in the HTML component. And the map entry values will be the text displayed to the user.

          I think we ought to add it somewhere in the Wiki, but for some reason we haven't yet. Sorry.

          Cheers

          Bruno

          Bruno P. Kinoshita added a comment - Hi tt24 You can return a Map instead of a List. The map entry keys will be the values in the HTML component. And the map entry values will be the text displayed to the user. I think we ought to add it somewhere in the Wiki, but for some reason we haven't yet. Sorry. Cheers Bruno

          Timot Tarjani added a comment - - edited

          Thanks it works, so I close the issue but please add it to the documentation.

          Timot Tarjani added a comment - - edited Thanks it works, so I close the issue but please add it to the documentation.

            kinow Bruno P. Kinoshita
            tt24 Timot Tarjani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: