The options docs for fields don’t make a reference to this, so I’m not sure if this is something already built into Cockpit.
Is there functionality already built into Cockpit that will conditionally show a field based on another field? For example, we create a collection of news items that can sometimes be external links. A boolean field in this collection called “external_link” is toggled on which then shows a hidden Text field for the url. When toggled off, the Text field is hidden.