Answers.Body: <p>The other option as you noted, is to use Views, via Views Bulk Operations along with CiviCRM Entities module. Not sure which solution is smoother given it isn't clear to me how many scenarios there are - eg X Groups times Y Events. Or whether there are multiple Groups for same Event, etc. Or how many contacts you might need to be ticking off as attended, so in case it helps.</p>
  
  <p>In VBO you ought to be able to provide a list of 'my events' to the User (based on Contextual Filters), then go to a page loaded with Participants and filter to the required Group, then 'modify entities' for all the contacts you want to attend.</p>
  
  <p>We set up a VBO for a similar situation but without the 'only contacts in my group' - you can read the blog here and grab a Views export to get started with <a href="http://www.fuzion.co.nz/blogs/confirming-attendees-door-another-use-entity-and-vbo" rel="nofollow">http://www.fuzion.co.nz/blogs/confirming-attendees-door-another-use-entity-and-vbo</a></p>
  
  <p>Also note that for another scenario we used Activities as the way to record 'attendance' for a school situation, and Eileen cooked up a Civi Report that allows for on screen editing (a bit like a Batch Update, but no saving required). Can flesh that option out too if it is useful.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-18T20:42:40.563Z
Answers.LastActivityDate: 2015-05-18T20:42:40.563Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>That's a good question. This ought to get you started, if you get it all working please post your own answer with more details :)</p>
  
  <ul>
  <li>Create a webform with 1 contact</li>
  <li>Disable all fields except the "existing contact" field</li>
  <li>Edit this field and set it to be "static", and set the default value to be populated from the group of your choice</li>
  <li>Under the "event" settings for the webform, choose "register each participant separately" and set the event field to be "user select"</li>
  <li>Edit this event field to limit the options to only the event of your choosing.</li>
  <li>You should now have a working webform that shows the first member of your group and allows you to register them for the event.</li>
  <li>If the above is working, you can now clone contact 1 as many times as needed to add the other members of the group.</li>
  </ul>
  
  <p>Admittedly this method has a few drawbacks</p>
  
  <ol>
  <li>Doesn't allow the end-user to select the group or event.</li>
  <li>Contact name and event checkbox will be on separate lines (maybe some css could fix this).</li>
  <li>There is a limit to the number of contacts you can have on a webform. Depending on the size of your groups, this may or may not be a problem.</li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-17T00:19:48.367Z
Answers.Text: One question: should each contact field auto-populate or do I need to select each person's name when setting up? Under Webform > Existing Contact> Default Value it says, "If more than one contact meets the criteria, the first match will be picked. If multiple existing contact fields exist on the webform, each will select a different contact." So I think they should auto-populate with different names, but each contact field is the same for me. Is there another box I need to check? ("Randomize" works, but it ignores the alphabetizing of the group). Thanks again!
Answers.UserDisplayName: Justin Young
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-17T02:42:00.990Z
Answers.Text: Each one ought to be different, as long as you have the "Allow duplicate autofill" disabled.
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-17T02:49:58.093Z
Answers.Text: Thank you. Must be related to an error I'm getting: 'Notice: Undefined index: id in wf_crm_webform_preprocess->findContact() (line 421 of /srv/bindings/3c695246b0c94163b1111659015ce247/code/sites/all/modules/webform_civicrm/includes/wf_crm_webform_preprocess.inc)' Will look into that.
Answers.UserDisplayName: Justin Young
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-16T22:22:46.817Z
Answers.LastActivityDate: 2015-05-17T02:43:08.010Z
Answers.LastEditDate: 2015-05-17T02:43:08.010Z
Answers.UserDisplayName: Coleman
Body: <p>In a Drupal/Civicrm setup, how do I create a page which</p>
  
  <ol>
  <li>Lists all members of a group</li>
  <li>Allows user to select certain members and register them for an pre-selected event to record attendance</li>
  </ol>
  
  <p>This is how I envision it:</p>
  
  <pre><code>Please submit attendance for this week's event:
  
  [ ] Bob Smith
  [x] Jeff Mason
  [x] Susan Collins
  
  [Submit]
  </code></pre>
  
  <p>My thoughts so far:</p>
  
  <ul>
  <li>I know #1 can be accomplished with a View, but how do I allow group
  members to be selected and registered for a pre-selected event?</li>
  <li>I know #2 can be partially accomplished with a Webform, but only by typing in group member names – not selecting them from a list.</li>
  </ul>
  
  <p>Is there a way to combine Views/Webform to accomplish this?</p>
  
  <p>The ultimate goal is to automatically email a custom link to this page to group leader to submit attendance after event each week.</p>
  
  <p>Thank you.</p>
  
Tags: <civievent><webform-civicrm><drupal-views>
Title: Select and register multiple people for a pre-selected event
ThreadText: # Select and register multiple people for a pre-selected event
  
  (Asked by: username_0 on 2015-05-16)
  
  In a Drupal/Civicrm setup, how do I create a page which
  
  Lists all members of a group
  Allows user to select certain members and register them for an pre-selected event to record attendance
  
  This is how I envision it:
  Please submit attendance for this week's event:
  
  [ ] Bob Smith
  [x] Jeff Mason
  [x] Susan Collins
  
  [Submit]
  
  My thoughts so far:
  
  I know #1 can be accomplished with a View, but how do I allow group
  members to be selected and registered for a pre-selected event?
  I know #2 can be partially accomplished with a Webform, but only by typing in group member names – not selecting them from a list.
  
  Is there a way to combine Views/Webform to accomplish this?
  The ultimate goal is to automatically email a custom link to this page to group leader to submit attendance after event each week.
  Thank you.
  
  **Tags:** civievent, webform-civicrm, drupal-views
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-05-16. Score: 3 | Accepted answer
  
  That's a good question. This ought to get you started, if you get it all working please post your own answer with more details :)
  
  * Create a webform with 1 contact
  * Disable all fields except the "existing contact" field
  * Edit this field and set it to be "static", and set the default value to be populated from the group of your choice
  * Under the "event" settings for the webform, choose "register each participant separately" and set the event field to be "user select"
  * Edit this event field to limit the options to only the event of your choosing.
  * You should now have a working webform that shows the first member of your group and allows you to register them for the event.
  * If the above is working, you can now clone contact 1 as many times as needed to add the other members of the group.
  
  Admittedly this method has a few drawbacks
  
  1. Doesn't allow the end-user to select the group or event.
  2. Contact name and event checkbox will be on separate lines (maybe some css could fix this).
  3. There is a limit to the number of contacts you can have on a webform. Depending on the size of your groups, this may or may not be a problem.
  
  > **Comments:**
  > **username_0**: One question: should each contact field auto-populate or do I need to select each person's name when setting up? Under Webform > Existing Contact> Default Value it says, "If more than one contact meets the criteria, the first match will be picked. If multiple existing contact fields exist on the webform, each will select a different contact." So I think they should auto-populate with different names, but each contact field is the same for me. Is there another box I need to check? ("Randomize" works, but it ignores the alphabetizing of the group). Thanks again!  
  > **username_2**: Each one ought to be different, as long as you have the "Allow duplicate autofill" disabled.  
  > **username_0**: Thank you. Must be related to an error I'm getting: 'Notice: Undefined index: id in wf_crm_webform_preprocess->findContact() (line 421 of /srv/bindings/3c695246b0c94163b1111659015ce247/code/sites/all/modules/webform_civicrm/includes/wf_crm_webform_preprocess.inc)' Will look into that.  
  
  ---
  
  ### Answer by username_1 on 2015-05-18. Score: 2
  
  The other option as you noted, is to use Views, via Views Bulk Operations along with CiviCRM Entities module. Not sure which solution is smoother given it isn't clear to me how many scenarios there are - eg X Groups times Y Events. Or whether there are multiple Groups for same Event, etc. Or how many contacts you might need to be ticking off as attended, so in case it helps.
  
  In VBO you ought to be able to provide a list of 'my events' to the User (based on Contextual Filters), then go to a page loaded with Participants and filter to the required Group, then 'modify entities' for all the contacts you want to attend.
  
  We set up a VBO for a similar situation but without the 'only contacts in my group' - you can read the blog here and grab a Views export to get started with <http://www.fuzion.co.nz/blogs/confirming-attendees-door-another-use-entity-and-vbo>
  
  Also note that for another scenario we used Activities as the way to record 'attendance' for a school situation, and Eileen cooked up a Civi Report that allows for on screen editing (a bit like a Batch Update, but no saving required). Can flesh that option out too if it is useful.
  
  
  ---
  
  