title: Can jenkins extended choice parameter be made dependent on another parameter's value?
body: <p>I am using <a href="https://plugins.jenkins.io/extended-choice-parameter/" rel="nofollow noreferrer">extended choice parameter</a> with JSON parameter type in my declarative Jenkins pipeline. I have found it very good for providing custom UI for parameters and it returns a json based on user inputs. </p>
  
  <p>I have a use case where what options are shown to user depends upon another parameter's value. I can achieve such functionality with <a href="https://plugins.jenkins.io/uno-choice/" rel="nofollow noreferrer">active choice parameter</a> but then I am stuck with radio buttons, checkbox, html input etc.</p>
  
  <p>I found a suitable option <a href="https://github.com/json-editor/json-editor#dependencies" rel="nofollow noreferrer">here</a> where I can make a property inside json dependent on another property:</p>
  
  <pre><code>{
    "title": "An object",
    "type": "object",
    "properties": {
      "fieldOne": {
        "title": "I should be changed to 'foo'",
        "type": "string",
        "enum": ["foo","bar"],
        "default": "bar"
      },
      "depender1": {
        "title": "I depend on fieldOne to be 'foo'",
        "type": "string",
        "enum": ["lorem","ipsum"],
        "options": {
          "dependencies": {
            "fieldOne": "foo"
          }
        }
      },
      "depender2": {
        "title": "I depend on fieldOne to be 'bar'",
        "type": "string",
        "enum": ["dolor", "sit"],
        "options": {
          "dependencies": {
            "fieldOne": "bar"
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>This works great when I try it <a href="https://json-editor.github.io/json-editor/" rel="nofollow noreferrer">here</a><a href="https://i.stack.imgur.com/Y1Q42.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y1Q42.png" alt="example"></a></p>
  
  <p>But when I try the same on jenkins, it doesn't work. It shows all 3 textboxes. I saw the option of watching other params too but I couldn't find how to use it as an if else for my parameter.</p>
  
  <p>This is a simple example, what I want to achieve requires UI of a dropdown-1 + Array(dropdown-2 + text field+text-field) where in array's text-field depend on value of dropdown-1, I cannot create the same UI in active choice.</p>
  
  <p>Does any one know how options.dependencies could work in jenkins or same could be achieved using watch/other plugins?</p>