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

Active choice reactive parameter with hidden formatted type might Gives the possibility to hide either the entire Input form or just the label name

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • active-choices-plugin
    • None

      hi,

       

      when using formatted hidden type with reactive parameter such I maned to hide the form with the following workaround in bold. That give the opportunity to display this parameter unpon Proj attributes and value

       

      [$class: 'DynamicReferenceParameter',
      choiceType: 'ET_FORMATTED_HIDDEN_HTML',
      name: 'toto',
      omitValueField: true,
      referencedParameters: 'Proj',
      script: [
      $class: 'GroovyScript',
      fallbackScript: [
      classpath: [],
      sandbox: false,
      script:
      'return[\'Could not get CI mode of operation\']'
      ],
      script: [
      classpath: [],
      sandbox: false,
      script: '''
      :

      <some code>

      html = """ <img src="fake.jpg" style="display:none;" onerror='document.getElementById("toto").closest(".form-group").style.display="none"'> """
      }
      return html
      '''
      ]
      ]
      ],

       

      Would it be possible to insert this feature natively, like the OmitValue field in advanced configuration

       

      What would be great as well is to only Hide the label name of the INPUT, here below IP_NAME leaving the input form only

       

       

       

       

       

          [JENKINS-65182] Active choice reactive parameter with hidden formatted type might Gives the possibility to hide either the entire Input form or just the label name

          That sounds like a useful improvement ricou22 . Unfortunately with the spare time I have to work on the plug-in, I will probably focus on major/blocker bugs first, before working on enhancements.

          Happy to review pull requests however.

          Thanks!

          Bruno

          Bruno P. Kinoshita added a comment - That sounds like a useful improvement ricou22 . Unfortunately with the spare time I have to work on the plug-in, I will probably focus on major/blocker bugs first, before working on enhancements. Happy to review pull requests however. Thanks! Bruno

          eric added a comment -

          No Pb Bruno, I do understand , bugs come first ,

          Cheers

          eric added a comment - No Pb Bruno, I do understand , bugs come first , Cheers

            kinow Bruno P. Kinoshita
            ricou22 eric
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: