So there is a requirement where a Text field is to be made optional depending on whether a Boolean is checked or not.
For example
there is a Boolean -GSTIN and a text field "GST Number"
the person should be able to fill GST Number(mandatory) if he checks GSTIN else the field should be disabled/non mandatory.