Switching on and off(hide parameters based on check or radio button)

We have a two pipelines, call happening from upstream pipeline to downstream pipeline and all downstream pipeline parameters are we had provided in upstream parameters. and user needs to run only upstream job based on situation.
Ask is, In UI build parameters we should hide/dissapper downstream (String and Choice) parameters by using any radio/check box option.

Anyone one can provide the solution it would be appreciated!