How to make one field's appearance on form depend on another field
You are looking for Conditional Fields module.

Description on module page says -


  Conditional Fields allows you to manage sets of dependencies between
  fields. When a field is “dependent”, it will only be available for
  editing and displayed if the state of the “dependee” field matches the
  right condition.