This issue is duplicate of https://www.drupal.org/project/conditional_fields/...