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

No value is passed in case of Multiple Formatted HTML Active Choice Reactive Reference parameter

      There is a pipeline job with multiple Active choices parameter and dependent Active choice Reactive Reference Parameters. Consider following scenario:

      1. Active Choice: Tomcat. Active choice Reactive Reference Parameters: Find files from repository related to Tomcat and html to return the choices for user to select the version
      2. Active Choice: SVN client. Active choice Reactive Reference Parameters: Find files from repository related to SVN client and html to return the choices for user to select the version

      To return the value, I am using:

      Active choice Reactive Reference Parameter 1:

      html=html+"""
      <input type="radio" json="${it}" name="value" value="${it}">${it as String}
      <br>
      """

      Active choice Reactive Reference Parameter 2:

      html2=html2+"""
      <input type="radio" json="${it}" name="value" value="${it}">${it as String}
      <br>
      """

      I am using different htmls to return the list but the input name is "value" for both  Reactive Reference Parameters. In this case, the radio button toggles between Choice 1 and choice 2 while selection.

      If the input name is changed, I am able to select any option from both Choice 1 and Choice 2 but the value is not passed to the pipeline.

      How is it possible to pass the value to the pipeline.

      PFA config.xml

          [JENKINS-54006] No value is passed in case of Multiple Formatted HTML Active Choice Reactive Reference parameter

          Have you tried to go into the advanced options of the AC Reactive Reference and check the Omit value field option? Otherwise the default 'null' value is passed into the build

          Ioannis Moutsatsos added a comment - Have you tried to go into the advanced options of the AC Reactive Reference and check the Omit value field option? Otherwise the default 'null' value is passed into the build

          I had checked the Omit value field option as well.

          In my attached config.xml:  <omitValueField>true</omitValueField>i.e. checked for all the values.

          The problem is in case of multiple formatted htmls used, I am able to return value only for one parameter since input name="value". If I change this, no value is passed at all. 

          Pooja Gangurde added a comment - I had checked the Omit value field option as well. In my attached config.xml:  <omitValueField>true</omitValueField>i.e. checked for all the values. The problem is in case of multiple formatted htmls used, I am able to return value only for one parameter since input name="value". If I change this, no value is passed at all. 

          Yes, I acknowledge this issue. If add more 1 reactive reference parameters you can't make selection from the first.

          It's blocker for me to use plugin.

          Viacheslav Dubrovskyi added a comment - Yes, I acknowledge this issue. If add more 1 reactive reference parameters you can't make selection from the first. It's blocker for me to use plugin.

            kinow Bruno P. Kinoshita
            poojagangurde Pooja Gangurde
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: