See the article: how does a backend config field <depends> condition work? Some widgets use it too, for example:
<depends>