Conditional fields

I'd like it so that certain fields only become active if previous fields are checked/unchecked.