# How to hide/show a parameter depending on an other jenkins parameter ? (Visible or unvisible paramter)

**URL:** <https://community.jenkins.io/t/how-to-hide-show-a-parameter-depending-on-an-other-jenkins-parameter-visible-or-unvisible-paramter/3880>\
**Category:** Ask a question\
**Tags:** jenkinsfile, pipeline, question\
**Created:** [September 21, 2022, 1:04pm UTC](https://community.jenkins.io/t/how-to-hide-show-a-parameter-depending-on-an-other-jenkins-parameter-visible-or-unvisible-paramter/3880 "2022-09-21T13:04:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mac](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mac](https://community.jenkins.io/u/mac)\
**Post date:** [September 21, 2022, 1:04pm UTC](https://community.jenkins.io/t/how-to-hide-show-a-parameter-depending-on-an-other-jenkins-parameter-visible-or-unvisible-paramter/3880/1 "2022-09-21T13:04:29Z")

</div>

Hello,

How to hide/show a parameter depending on an other jenkins parameter ? (Visible or unvisible paramter)

Thanks

Mac.

---

<div class="post-metadata">

**Author:** ![imoutsatsos](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/imoutsatsos/32/162_2.png) [@imoutsatsos](https://community.jenkins.io/u/imoutsatsos)\
**Post date:** [September 23, 2022, 1:08pm UTC](https://community.jenkins.io/t/how-to-hide-show-a-parameter-depending-on-an-other-jenkins-parameter-visible-or-unvisible-paramter/3880/2 "2022-09-23T13:08:24Z")

</div>

I would look into the [Active Choices](https://github.com/jenkinsci/active-choices-plugin) parameters plugin. You can have AC reference parameters that respond to choices made in other form parameters , and you can hide and show them by rendering them as HTML input that can be hidden or shown.

---

<div class="post-metadata">

**Author:** ![mac](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mac](https://community.jenkins.io/u/mac)\
**Post date:** [September 23, 2022, 2:11pm UTC](https://community.jenkins.io/t/how-to-hide-show-a-parameter-depending-on-an-other-jenkins-parameter-visible-or-unvisible-paramter/3880/3 "2022-09-23T14:11:50Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/0/08cf241a561440f642bfe618813824d451339ea6.png)

How can I do → hide/show an active choice with code groovy code → return [“”,“LINUX”,“WINDOWS”] ?

See an example in attach.

Thanks.

---

<div class="post-metadata">

**Author:** ![imoutsatsos](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/imoutsatsos/32/162_2.png) [@imoutsatsos](https://community.jenkins.io/u/imoutsatsos)\
**Post date:** [September 23, 2022, 4:28pm UTC](https://community.jenkins.io/t/how-to-hide-show-a-parameter-depending-on-an-other-jenkins-parameter-visible-or-unvisible-paramter/3880/4 "2022-09-23T16:28:44Z")

</div>

You have to use AC **Reactive Reference** parameter type. Then you can render as well formatted HTML that can be shown or hidden. Here is an example:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/8/83c2751204555e57c586b14be50b4b1819e07f0a.png)

And here is how it behaves

![Toggle_Hidden_GIF](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/c/c2ecf73529cd40e636ba137010b88a62a7b0a834.gif)

---

<div class="post-metadata">

**Author:** ![mac](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mac](https://community.jenkins.io/u/mac)\
**Post date:** [September 25, 2022, 8:45pm UTC](https://community.jenkins.io/t/how-to-hide-show-a-parameter-depending-on-an-other-jenkins-parameter-visible-or-unvisible-paramter/3880/5 "2022-09-25T20:45:02Z")

</div>

Tanks for your response.  
But How to hide List label IAM\_TOGGLED , TOGGLE element , a textbox and its label?

---

<div class="post-metadata">

**Author:** ![DeepuJ](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@DeepuJ](https://community.jenkins.io/u/DeepuJ)\
**Post date:** [January 23, 2023, 4:36pm UTC](https://community.jenkins.io/t/how-to-hide-show-a-parameter-depending-on-an-other-jenkins-parameter-visible-or-unvisible-paramter/3880/6 "2023-01-23T16:36:33Z")

</div>

I have a same requirement, Disable or hide the parameters like String, Choice parameters in build with parameters based on selection of boolean ‘true’ or radio or check box

I would appreciate you for the solution and by using active choice we can’t achieve

> <https://stackoverflow.com/questions/75145550/disappear-disabled-few-jenkins-parameters-in-build-parameters-based-on-the-other>

I didn’t get solution in stackoverflow as well

---

<div class="post-metadata">

**Author:** ![stoinov](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/stoinov/32/8739_2.png) [@stoinov](https://community.jenkins.io/u/stoinov)\
**Post date:** [June 21, 2024, 2:28pm UTC](https://community.jenkins.io/t/how-to-hide-show-a-parameter-depending-on-an-other-jenkins-parameter-visible-or-unvisible-paramter/3880/7 "2024-06-21T14:28:35Z")

</div>

[Here’s a post](https://stackoverflow.com/a/78649445/48639) that explains how to use Active Choices plugin to dynamically hide arbitrary properties based on value change of another.
