Answers.Body: <p>1/ You can do this in a Drupal Webform so that the original coach has their relationship expired</p>
  
  <p>2/ we did some work for another age-based organisation to ensure that only the valid membership type was available based on the Date of Birth. It isn't something that I could just 'share' but if it helps you and you have a bit of budget we could probably extract what you need fairly quickly.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-06T22:00:01.417Z
Answers.LastActivityDate: 2019-01-06T22:00:01.417Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>Without writing code (an extension or CiviRules conditions), I think your only bet is to use smart groups for Junior/Senior players.  I don't think there's any way to remove the head coach relationship automatically without code.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-04T18:12:51.403Z
Answers.LastActivityDate: 2019-01-04T18:12:51.403Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I'd like to automate couple of settings in my contact list and I was wondering can these be done without writing special extensions or Drupal modules:</p>
  
  <ol>
  <li><p>Couple of people qualify to be a Head Coach of the Club, so when the time comes one of them will be selected via Relationships. Can I remove an existing relationship from other person when new person gets selected? So there's only 1 head coach in each club?</p></li>
  <li><p>There's 2 types of players - Junior and Senior (I have this as a custom select field) - when a player turns 18 or when I create a new one via Webform, the type is automatically selected for the right age?</p></li>
  </ol>
  
  <p>I tried Drupal Rules, Civirules but I didn't find an easy way to do it so no manual work is necessary...</p>
  
Tags: <drupal-rules>
Title: A bit of automation?
ThreadText: # A bit of automation?
  
  (Asked by: username_0 on 2019-01-03)
  
  I'd like to automate couple of settings in my contact list and I was wondering can these be done without writing special extensions or Drupal modules:
  
  1. Couple of people qualify to be a Head Coach of the Club, so when the time comes one of them will be selected via Relationships. Can I remove an existing relationship from other person when new person gets selected? So there's only 1 head coach in each club?
  2. There's 2 types of players - Junior and Senior (I have this as a custom select field) - when a player turns 18 or when I create a new one via Webform, the type is automatically selected for the right age?
  
  I tried Drupal Rules, Civirules but I didn't find an easy way to do it so no manual work is necessary...
  
  **Tags:** drupal-rules
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-01-06. Score: 2
  
  1/ You can do this in a Drupal Webform so that the original coach has their relationship expired
  
  2/ we did some work for another age-based organisation to ensure that only the valid membership type was available based on the Date of Birth. It isn't something that I could just 'share' but if it helps you and you have a bit of budget we could probably extract what you need fairly quickly.
  
  
  ---
  
  ### Answer by username_2 on 2019-01-04. Score: 1
  
  Without writing code (an extension or CiviRules conditions), I think your only bet is to use smart groups for Junior/Senior players. I don't think there's any way to remove the head coach relationship automatically without code.
  
  
  ---
  
  