Answers.Body: <p>You can list the people using CiviCRM Views and add the View to the same page as the webform.  Easiest is to put the View into a block, but you can also do this with the Paragraphs module or Panels.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-11T17:04:28.877Z
Answers.Text: Thanks Jon - how do I restrict the view of the participants to the event that the user has selected?  i.e. the user may be scrolling through several events & of course I just want show who's signed up for each currently selected event - (maybe this is a separate question!)
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-11T20:40:14.527Z
Answers.Text: If you have a small number of events, you can simply have multiple display views and assign them manually.  If you have a larger number, you're going to need to use the "contextual filter" feature.  The trick is telling the contextual filter the event ID.  Is there a change the event ID is in the URL or can be added to it?
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-08T13:18:58.643Z
Answers.LastActivityDate: 2018-07-08T13:18:58.643Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Create a link and point potential registrants to the standard CiviCRM public participant listing -</p>
  
  <p><a href="https://dmaster.demo.civicrm.org/civicrm/event/participant?reset=1&amp;id=3" rel="nofollow noreferrer">https://dmaster.demo.civicrm.org/civicrm/event/participant?reset=1&amp;id=3</a></p>
  
  <p>Where id=3 is the event ID. </p>
  
  <p>There’s a participant listing option in the events info and settings section -</p>
  
  <p>To allow users to see a listing of participants, set this field to 'Name' (list names only), 'Name and Email', or 'Name, Status and Register Date'. You will need to set Access Control permissions to include 'view event participants' for any Roles you want to access this listing.</p>
  
  <p><a href="https://i.sstatic.net/OKgiY.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OKgiY.png" alt="Public participant listing option"></a></p>
  
  <p><a href="https://i.sstatic.net/WfKA3.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/WfKA3.png" alt="Link to public participant listing"></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-11T17:01:04.550Z
Answers.Text: Thanks, but what I need to see is name, role and gender so the View solution below is probably what I need.
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-09T11:19:50.200Z
Answers.LastActivityDate: 2018-07-11T12:24:36.057Z
Answers.LastEditDate: 2018-07-11T12:24:36.057Z
Answers.UserDisplayName: Anil
Body: <p>I would like to use a webform for people to signup for an event - but they need to see who else has signed up as these events need at least one of each gender. The event is a kind of 'first aid' event where you must have both men and women on duty - not just all men or all women.  I've used webforms for signing up individuals for events, but not run into this requirement before.</p>
  
Tags: <drupal><webform-civicrm>
Title: Can a webform list who has already signed up for an event?
ThreadText: # Can a webform list who has already signed up for an event?
  
  (Asked by: username_0 on 2018-07-08)
  
  I would like to use a webform for people to signup for an event - but they need to see who else has signed up as these events need at least one of each gender. The event is a kind of 'first aid' event where you must have both men and women on duty - not just all men or all women. I've used webforms for signing up individuals for events, but not run into this requirement before.
  
  **Tags:** drupal, webform-civicrm
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-07-08. Score: 4
  
  You can list the people using CiviCRM Views and add the View to the same page as the webform. Easiest is to put the View into a block, but you can also do this with the Paragraphs module or Panels.
  
  > **Comments:**
  > **username_0**: Thanks Jon - how do I restrict the view of the participants to the event that the user has selected?  i.e. the user may be scrolling through several events & of course I just want show who's signed up for each currently selected event - (maybe this is a separate question!)  
  > **username_1**: If you have a small number of events, you can simply have multiple display views and assign them manually.  If you have a larger number, you're going to need to use the "contextual filter" feature.  The trick is telling the contextual filter the event ID.  Is there a change the event ID is in the URL or can be added to it?  
  
  ---
  
  ### Answer by username_2 on 2018-07-09. Score: 3
  
  Create a link and point potential registrants to the standard CiviCRM public participant listing -
  
  <https://dmaster.demo.civicrm.org/civicrm/event/participant?reset=1&id=3>
  
  Where id=3 is the event ID.
  
  There’s a participant listing option in the events info and settings section -
  
  To allow users to see a listing of participants, set this field to 'Name' (list names only), 'Name and Email', or 'Name, Status and Register Date'. You will need to set Access Control permissions to include 'view event participants' for any Roles you want to access this listing.
  
  [![Public participant listing option](https://i.sstatic.net/OKgiY.png)](https://i.sstatic.net/OKgiY.png)
  
  [![Link to public participant listing](https://i.sstatic.net/WfKA3.png)](https://i.sstatic.net/WfKA3.png)
  
  > **Comments:**
  > **username_0**: Thanks, but what I need to see is name, role and gender so the View solution below is probably what I need.  
  
  ---
  
  