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

Request for Dynamic Input Generation in Active Choices Plugin

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • active-choices-plugin
    • None

      I would like to propose an enhancement to the Active Choices plugin to support the dynamic generation of input fields based on user choices. Currently, the plugin allows us to create dropdowns, but I believe extending this functionality to dynamically generate multiple input fields would greatly enhance its versatility.

      I envision the ability to dynamically add rows of input fields, where each row consists of text fields or dropdowns. The user should be able to decide the number of rows dynamically. This would greatly streamline the input process for various scenarios.

          [JENKINS-72660] Request for Dynamic Input Generation in Active Choices Plugin

          Naveen added a comment -

          Hi Team, any update on this requriemnt

          Naveen added a comment - Hi Team, any update on this requriemnt

          Hi naveen_ch 

          No progress from my part, but I am quite sure this is already supported using the dynamic reference parameter. With that parameter type you can write any HTML and JavaScript code you like.

          I remember one example from ioannis where he had custom elements (multiple) based on a single input field. It is not the easiest way to do that, as the user configuring the job needs to spend some time preparing the HTML elements to match those of Jenkins parameters, so perhaps an improvement could be to make that easier.

          For now I am focused on fixing bugs (security, broken things), and only after those are fixed, released, tested, then I can work on new features. If you or anyone reading this can prepare a pull request, then I'd be happy to review and merge it sooner. Otherwise, it might take some time for me to go through the backlog (Note: I work with something different right now, no Jenkins, and do this on my volunteer time; if you have urgency on this, please contact/hire someone like CloudBees).

          Thanks!

          Bruno

          Bruno P. Kinoshita added a comment - Hi naveen_ch   No progress from my part, but I am quite sure this is already supported using the dynamic reference parameter. With that parameter type you can write any HTML and JavaScript code you like. I remember one example from ioannis where he had custom elements (multiple) based on a single input field. It is not the easiest way to do that, as the user configuring the job needs to spend some time preparing the HTML elements to match those of Jenkins parameters, so perhaps an improvement could be to make that easier. For now I am focused on fixing bugs (security, broken things), and only after those are fixed, released, tested, then I can work on new features. If you or anyone reading this can prepare a pull request, then I'd be happy to review and merge it sooner. Otherwise, it might take some time for me to go through the backlog (Note: I work with something different right now, no Jenkins, and do this on my volunteer time; if you have urgency on this, please contact/hire someone like CloudBees). Thanks! Bruno

          Naveen added a comment -

          Hi Bruno,

          Thank you for your detailed explanation and for highlighting the use of dynamic reference parameters. Your efforts in fixing bugs and ensuring security are greatly appreciated. 

          I'll patiently await the updates. Thank you for your understanding.

           

          Regards,

          Naveen

           

           

          Naveen added a comment - Hi Bruno, Thank you for your detailed explanation and for highlighting the use of dynamic reference parameters. Your efforts in fixing bugs and ensuring security are greatly appreciated.  I'll patiently await the updates. Thank you for your understanding.   Regards, Naveen    

          Naveen added a comment -

          Hi Bruno,
           
          While developing a Jenkins form, I successfully implemented a reference dropdown and dynamic user input functionality individually. However, I encountered difficulties when trying to combine these two functionalities seamlessly within the form. 
           
          Any insights, suggestions, or alternative approaches to accomplish this integration would be greatly appreciated.
           
          Regards,
          Naveen

          Naveen added a comment - Hi Bruno,   While developing a Jenkins form, I successfully implemented a reference dropdown and dynamic user input functionality individually. However, I encountered difficulties when trying to combine these two functionalities seamlessly within the form.    Any insights, suggestions, or alternative approaches to accomplish this integration would be greatly appreciated.   Regards, Naveen

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

              Created:
              Updated: