Answers.Body: <p>Alternative is to use CiviRules extension: <a href="https://civicrm.org/extensions/civirules" rel="nofollow noreferrer">https://civicrm.org/extensions/civirules</a></p>
  
  <p>Documentation can be found here: <a href="https://docs.civicrm.org/civirules/en/latest/" rel="nofollow noreferrer">https://docs.civicrm.org/civirules/en/latest/</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-12T07:44:12.577Z
Answers.LastActivityDate: 2018-02-12T07:44:12.577Z
Answers.UserDisplayName: ErikH - CiviCooP
Answers.Body: <p>This is what Smart Groups can do for you. So instead of setting the Group in the Profile, just set up a Smart Group based on the field eg language.</p>
  
  <p>Or if you need people to be added to a Group via the profile AND then set up subgroups based on language, add the primary Group X via the Profile, then create a Smart Group based on 'is added to Group X AND has preferred language = Mongolian"</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-11T21:56:38.567Z
Answers.LastActivityDate: 2018-02-11T21:56:38.567Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>When a user fills out a registration form to an event, I can set the profile up to add him automatically to a specific group. But how do I choose the group automatically according to what he filled out in the form?
  Specifically, according to his chosen preferred language, I need to add him to 1 of 4 different groups. How can this be done?</p>
  
Tags: <groups><online-registration>
Title: add to group automatically according to custom logic
ThreadText: # add to group automatically according to custom logic
  
  (Asked by: username_0 on 2018-02-11)
  
  When a user fills out a registration form to an event, I can set the profile up to add him automatically to a specific group. But how do I choose the group automatically according to what he filled out in the form?
  Specifically, according to his chosen preferred language, I need to add him to 1 of 4 different groups. How can this be done?
  
  **Tags:** groups, online-registration
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-02-12. Score: 4 | Accepted answer
  
  Alternative is to use CiviRules extension: <https://civicrm.org/extensions/civirules>
  
  Documentation can be found here: <https://docs.civicrm.org/civirules/en/latest/>
  
  
  ---
  
  ### Answer by username_2 on 2018-02-11. Score: 5
  
  This is what Smart Groups can do for you. So instead of setting the Group in the Profile, just set up a Smart Group based on the field eg language.
  
  Or if you need people to be added to a Group via the profile AND then set up subgroups based on language, add the primary Group X via the Profile, then create a Smart Group based on 'is added to Group X AND has preferred language = Mongolian"
  
  
  ---
  
  