jdorn / json-editor

JSON Schema Based Editor
MIT License
5.81k stars 1.08k forks source link

enum field selection based on watch of another field #841

Open fyhan1 opened 4 years ago

fyhan1 commented 4 years ago

In relating to use of Jenkins plugin ExtendedChoiceParameter (jsonEditor underline)

Is there a way with the schema for a enum field to change the selection based on another field watched?

Here is a scenario. There are more than one enum fields (one on root level, the other on 2nd level) with the same list. Selection of the root field will trigger all the others on the 2nd level to have the same selection, but allow user to make changes on individual 2nd level fields, if needed.