<p>No, this is not possible, because the number and type of parameters for a build are fixed and cannot be modified on-the-fly.  The only way to modify which parameters show up in the "build with parameters" UI is to change the job configuration, which alters the parameters permanently.</p>

<p>In my opinion, if you need to do several different tasks which require several different input parameters (such as "build", "test", "install", "deploy", etc.), you should have separate jobs in Jenkins for each task.  I personally think it is a good ideal in general to avoid complex Jenkins jobs which require a lot of input parameters and try instead to simplify job configuration in order to reduce the likelihood of subtle, difficult-to-debug errors when executing jobs.</p>

CC BY-SA 4.0
2020-02-18T18:38:29.163Z
2020-02-18T18:38:29.163Z
jayhendren
<p>I have the below pipeline:
<a href="https://i.sstatic.net/EP5ff.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/EP5ff.png" alt="Pipeline"></a>
I want that once I choose in the InstllationType the value 'Recreate', some fields will disappear. is it possible to do it with an active choice parameter? if not, is there any other way for doing it?</p>

CC BY-SA 4.0
2020-04-15T08:57:47.383Z
By your server name I detected that you work in the same company as I did. And I implemented there exactly same thing successfully. So you can take an example from what I did (consult with Franklin L., cause I left company and don't have an access to the Jenkins). And don't forget to post it here please when find out.
Michael A.
CC BY-SA 4.0
2023-04-11T21:30:15.923Z
That's possible
You can see my solution in this link
https://stackoverflow.com/a/75990270/4146360
Jheison Rodriguez
<jenkins-pipeline>
Does active choice reactive parameter support hide fields option?
arielma
# Does active choice reactive parameter support hide fields option?

(Asked by: username_0 on 2020-02-17)

I have the below pipeline:
[![Pipeline](https://i.sstatic.net/EP5ff.png)](https://i.sstatic.net/EP5ff.png)
I want that once I choose in the InstllationType the value 'Recreate', some fields will disappear. is it possible to do it with an active choice parameter? if not, is there any other way for doing it?

**Tags:** jenkins-pipeline

> **Comments:**
> **username_1**: By your server name I detected that you work in the same company as I did. And I implemented there exactly same thing successfully. So you can take an example from what I did (consult with Franklin L., cause I left company and don't have an access to the Jenkins). And don't forget to post it here please when find out.  
> **username_2**: That's possible You can see my solution in this link https://stackoverflow.com/a/75990270/4146360  

---

## 1 answers

### Answer by username_3 on 2020-02-18. Score: 1 | Accepted answer

No, this is not possible, because the number and type of parameters for a build are fixed and cannot be modified on-the-fly. The only way to modify which parameters show up in the "build with parameters" UI is to change the job configuration, which alters the parameters permanently.

In my opinion, if you need to do several different tasks which require several different input parameters (such as "build", "test", "install", "deploy", etc.), you should have separate jobs in Jenkins for each task. I personally think it is a good ideal in general to avoid complex Jenkins jobs which require a lot of input parameters and try instead to simplify job configuration in order to reduce the likelihood of subtle, difficult-to-debug errors when executing jobs.


---

