Change the states of an element based on another element (field) | Drupal 8