Answers.Body: <p>Webform-CiviCRM will remove you from a group:</p>
  
  <ul>
  <li>Only if you are logged-in or following a checksum (or otherwise selected as an existing contact)</li>
  <li>Only if the group is presented on the webform as a checkbox/multiselect field and you deselect it.</li>
  </ul>
  
  <p>In other words, the user has to make an active choice. Filling out the form as an unknown user, you're not consciously choosing to <em>un</em> check the box (it just defaults that way) so in that instance the module will only add, not remove you from groups.</p>
  
  <p>BTW it works that way for all webform fields. The module will not delete any data from a contact record unless that contact has already been identified and the data was pre-filled on the form and the user made an active choice to erase it.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-09T04:05:42.883Z
Answers.Text: @Colman so if the group isn't displays, it should not remove the contact from the group, correct?
Answers.UserDisplayName: Yossi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-09T10:57:16.213Z
Answers.Text: Thanks Coleman! I tested this before I asked the question :-) I just wanted someone who really knew - you - to confirm this, for future users and future releases.
Answers.UserDisplayName: commonpike
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-09T10:59:00.617Z
Answers.Text: @YossiCrm yes, this is what I tested. Groups that don't show up in the form are not modified on the contact.
Answers.UserDisplayName: commonpike
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-09T02:18:26.920Z
Answers.LastActivityDate: 2017-02-09T02:18:26.920Z
Answers.UserDisplayName: Coleman
Body: <p>If you use civicrm-webform, you can add civigroups to your form. You can choose 'user select' to have the user select one or more groups. In the form component, you can choose 'static' to show only a few of all possible groups.</p>
  
  <p>So say you have two newsletter groups and two agegroups. You use the above method to only show the newsletter groups to existing contacts.</p>
  
  <p>Will that remove the the contact from the agegroups if s/he fills out the form ? </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-08T19:47:47.390Z
Comments.Text: Sounds like you might be able to answer your own question with a quick test of a simple scenario such as you describe
Comments.UserDisplayName: petednz - fuzion
Tags: <webform-civicrm><groups>
Title: When does civicrm-webform remove you from groups?
ThreadText: # When does civicrm-webform remove you from groups?
  
  (Asked by: username_0 on 2017-02-08)
  
  If you use civicrm-webform, you can add civigroups to your form. You can choose 'user select' to have the user select one or more groups. In the form component, you can choose 'static' to show only a few of all possible groups.
  
  So say you have two newsletter groups and two agegroups. You use the above method to only show the newsletter groups to existing contacts.
  
  Will that remove the the contact from the agegroups if s/he fills out the form ?
  
  **Tags:** webform-civicrm, groups
  
  > **Comments:**
  > **username_1**: Sounds like you might be able to answer your own question with a quick test of a simple scenario such as you describe  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-02-09. Score: 2 | Accepted answer
  
  Webform-CiviCRM will remove you from a group:
  
  * Only if you are logged-in or following a checksum (or otherwise selected as an existing contact)
  * Only if the group is presented on the webform as a checkbox/multiselect field and you deselect it.
  
  In other words, the user has to make an active choice. Filling out the form as an unknown user, you're not consciously choosing to *un* check the box (it just defaults that way) so in that instance the module will only add, not remove you from groups.
  
  BTW it works that way for all webform fields. The module will not delete any data from a contact record unless that contact has already been identified and the data was pre-filled on the form and the user made an active choice to erase it.
  
  > **Comments:**
  > **username_3**: @Colman so if the group isn't displays, it should not remove the contact from the group, correct?  
  > **username_0**: Thanks username_2! I tested this before I asked the question :-) I just wanted someone who really knew - you - to confirm this, for future users and future releases.  
  > **username_0**: @YossiCrm yes, this is what I tested. Groups that don't show up in the form are not modified on the contact.  
  
  ---
  
  