Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47785

Different option and value

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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?

       

       

        Attachments

          Activity

          Hide
          kinow Bruno P. Kinoshita added a comment -

          Hi Timot Tarjani

          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

          Show
          kinow Bruno P. Kinoshita added a comment - Hi Timot Tarjani 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
          Hide
          tt24 Timot Tarjani added a comment - - edited

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

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: