Answers.Body: <p>This is no quick solution (though I suspect there isn't a reliable one), but just as a note for future development--this situation of grabbing the "next call" is precisely why reserving contacts in the phonebank feature exists.  I think the real solution (that may be out of your immediate budget and timeframe Joe, but is what would actually tackle the issue) is to have a nice frontend on the phonebank.</p>
  
  <p>Just as I call exposing a profile in create mode for semi-privileged users "intern mode"--for allowing someone to enter contacts without actually giving them full CiviCRM access--a phonebank listing would let someone go down the list of contacts reserved for them and potentially reserve a few more as the caller gets to the end of the list.  That would solve this problem in a non-Drupal-centric way, use the nice "reserve" feature to handle the situation in Chris's comment, and provide a complete experience for those running and staffing the phone bank.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-18T03:55:54.827Z
Answers.LastActivityDate: 2015-09-18T03:55:54.827Z
Answers.UserDisplayName: Andie Hunt
Body: <p>I've created a webform for a phone caller to use when calling members of a Civi Group who have already signed a card, to sign the Group members up for follow up activities. </p>
  
  <p>Once the phone caller completes the call, and submits the form, I want a new form to populate with the name of the next Group member to be called. </p>
  
  <p>The "target" contact is an Existing Contact, I have the Form Widget set to Static, under Default Value I have Set default contact from Auto - From Filters, and under Filters I've chosen only the relevant Group. </p>
  
  <p>But the first name in the Group reappears upon Submit. </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-18T01:56:47.140Z
Comments.Text: Something to consider when doing this - if you have multiple callers, you want to avoid having two of them both grab the same "next call" off the top of the stack. When we did something similar, we had the callers assign calls to a stack which they "owned", and then call off their own stack; this prevents duplicate calls going out. This is even more likely if the call is not moved off the stack until call completes.
Comments.UserDisplayName: Chris Burgess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-18T02:12:26.387Z
Comments.Text: Chris, good point, right now just trying to make it work for one caller at a time. With multiple callers I can create Groups for each callers assigned contacts - though then the challenge is enabling a filter for each caller to choose their Group.
Comments.UserDisplayName: Joe McLaughlin
Tags: <webform-civicrm>
Title: How can I automatically advance to the next member of a filtered group upon webform submission?
ThreadText: # How can I automatically advance to the next member of a filtered group upon webform submission?
  
  (Asked by: username_0 on 2015-09-18)
  
  I've created a webform for a phone caller to use when calling members of a Civi Group who have already signed a card, to sign the Group members up for follow up activities.
  
  Once the phone caller completes the call, and submits the form, I want a new form to populate with the name of the next Group member to be called.
  
  The "target" contact is an Existing Contact, I have the Form Widget set to Static, under Default Value I have Set default contact from Auto - From Filters, and under Filters I've chosen only the relevant Group.
  
  But the first name in the Group reappears upon Submit.
  
  **Tags:** webform-civicrm
  
  > **Comments:**
  > **username_1**: Something to consider when doing this - if you have multiple callers, you want to avoid having two of them both grab the same "next call" off the top of the stack. When we did something similar, we had the callers assign calls to a stack which they "owned", and then call off their own stack; this prevents duplicate calls going out. This is even more likely if the call is not moved off the stack until call completes.  
  > **username_0**: Chris, good point, right now just trying to make it work for one caller at a time. With multiple callers I can create Groups for each callers assigned contacts - though then the challenge is enabling a filter for each caller to choose their Group.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-09-18. Score: 3
  
  This is no quick solution (though I suspect there isn't a reliable one), but just as a note for future development--this situation of grabbing the "next call" is precisely why reserving contacts in the phonebank feature exists. I think the real solution (that may be out of your immediate budget and timeframe Joe, but is what would actually tackle the issue) is to have a nice frontend on the phonebank.
  
  Just as I call exposing a profile in create mode for semi-privileged users "intern mode"--for allowing someone to enter contacts without actually giving them full CiviCRM access--a phonebank listing would let someone go down the list of contacts reserved for them and potentially reserve a few more as the caller gets to the end of the list. That would solve this problem in a non-Drupal-centric way, use the nice "reserve" feature to handle the situation in Chris's comment, and provide a complete experience for those running and staffing the phone bank.
  
  
  ---
  
  