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

f:validateButton sets last value for radio not the selected one

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core

      If you use `f:radioBlock` with multiple radio buttons
      and you have an `f:validateButton` where you want the value of the radio button submitted

      The value of the radio button that is submitted in the form submission is always the last radio button and not the selected one.

      Noticed in https://github.com/jenkinsci/azure-vm-agents-plugin/pull/493, but comments in the code point to workarounds being put in place for it from at least 2.60.

          [JENKINS-72505] f:validateButton sets last value for radio not the selected one

          Tim Jacomb created issue -
          Tim Jacomb made changes -
          Labels New: lts-candidate
          Tim Jacomb made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Tim Jacomb made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Tim Jacomb made changes -
          Remote Link New: This issue links to "https://github.com/jenkinsci/jenkins/pull/8832 (Web Link)" [ 29421 ]
          Tim Jacomb made changes -
          Description New: If you use `f:radioBlock` with multiple radio buttons
          and you have an `f:validateButton` where you want the value of the radio button submitted

          The value of the radio button that is submitted in the form submission is always the last radio button and not the selected one.

          Noticed in https://github.com/jenkinsci/azure-vm-agents-plugin/pull/493, but comments in the code point to workarounds being put in place for it from at least 2.60.

          Mark Waite made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]
          Mark Waite made changes -
          Released As New: https://www.jenkins.io/changelog/?query#v2.443
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]
          Alexander Brandes made changes -
          Labels Original: lts-candidate New: 2.440.1-fixed

            Unassigned Unassigned
            timja Tim Jacomb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: