Answers.Body: <p>You can create a smart group for each county?</p>
  <p>Or you can use Civi rules to add and remove people after certain action</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-14T14:54:48.577Z
Answers.Text: the trouble with this is that I dont have someone in each county that I can create the smart group with, so for the counties without anyone in, there wont be an automatic group
Answers.UserDisplayName: Dan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-14T15:48:20.423Z
Answers.Text: You can create dummy contact create a smart group and later delete the dummy contact
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-14T13:01:10.643Z
Answers.LastActivityDate: 2024-05-14T13:01:10.643Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I would like to setup CiviCRM on Backdrop to automatically add new contacts to groups based on the county they are listed in. BUT, not every group has a record in so some of these groups are empty, however I still need to be sure that if a contact was to be added that lived in county X, they would automatically be in X group</p>
  <p>I have the groups setup, i just dont know how I can add the automatic bit</p>
  <p>Thanks in advance</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-05-14T12:34:12.720Z
Comments.Text: I think you'll need a custom extension to accomplish that. It would be something like: watch for a contact to be created. When a contact is created, get their county information, and then add them to the appropriate group.
Comments.UserDisplayName: zip
Tags: <groups>
Title: How to automatically add to group based on county
ThreadText: # How to automatically add to group based on county
  
  (Asked by: username_0 on 2024-05-14)
  
  I would like to setup CiviCRM on Backdrop to automatically add new contacts to groups based on the county they are listed in. BUT, not every group has a record in so some of these groups are empty, however I still need to be sure that if a contact was to be added that lived in county X, they would automatically be in X group
  
  I have the groups setup, i just dont know how I can add the automatic bit
  
  Thanks in advance
  
  **Tags:** groups
  
  > **Comments:**
  > **username_1**: I think you'll need a custom extension to accomplish that. It would be something like: watch for a contact to be created. When a contact is created, get their county information, and then add them to the appropriate group.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2024-05-14. Score: 2 | Accepted answer
  
  You can create a smart group for each county?
  
  Or you can use Civi rules to add and remove people after certain action
  
  > **Comments:**
  > **username_0**: the trouble with this is that I dont have someone in each county that I can create the smart group with, so for the counties without anyone in, there wont be an automatic group  
  > **username_2**: You can create dummy contact create a smart group and later delete the dummy contact  
  
  ---
  
  