Show N additional custom fields if CF1 = "Yes"?

We want to show (in view and edit modes) some custom fields only
if SomeCustomField is set to “Yes”

Any tips where to start digging?