Answers.Body: <p>Currently there is no way to target a single record of a multiple record custom field set with a Webform.  As stated above, using Activities and Cases for this type of data as opposed to multiple record custom field sets is the better option for our use case.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-10T19:56:34.847Z
Answers.LastActivityDate: 2016-04-10T19:56:34.847Z
Answers.UserDisplayName: pmoz
Body: <p>Drupal 7.40
  Webform-Civi Integration 7.x-4.13</p>
  
  <p>Similar to Graham's question <a href="https://civicrm.stackexchange.com/questions/6360/how-are-multiple-record-custom-fields-handled-in-drupal-webforms">here</a>.</p>
  
  <p>Use case:
  Setting up goal plans that look like this:<p>
  Long-Term Goal 1<br>
    Short-Term Goal A<br>
    Short-Term Goal B<br>
    Short-Term Goal C<p>
  Long-Term Goal 2<br>
    Short-Term Goal A<br>
    Short-Term Goal B<br>
    Short-Term Goal C<p>
  Long-Term Goal 3<br>
    Short-Term Goal A<br>
    Short-Term Goal B<br>
    Short-Term Goal C<p></p>
  
  <p>etc.</p>
  
  <p>I've created a custom field set that allows multiple records.
  Each record contains:<p>
  Long-Term Goal<br>
  Short-Term Goal A<br>
  Short-Term Goal B<br>
  Short-Term Goal C</p>
  
  <p>We have a View that lists the goal plans with a link to edit the goal plan profile.  However, it is large and confusing for the end user.</p>
  
  <p>I'd like to create a Webform that targets each individual record not all of them.</p>
  
  <p>Custom fields have ids in their tables, but I can't see a way to implement them in Views or Webform.</p>
  
  <p>I believe I could expose it to Views but even if I can, is there any way for Webform to use the record id?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-27T05:36:30.100Z
Comments.Text: Will flesh out this option if you want, but for a very similar use case we opted to use Activities rather than contact based custom fields
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-27T10:15:08.643Z
Comments.Text: Activities and Cases seem the way to go in our case too Pete.  We are in the process of converting most multiple record custom field sets to either Activities or Cases.
Comments.UserDisplayName: pmoz
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-27T13:23:58.037Z
Comments.Text: When you say "I'd like to create a Webform that targets each individual record not all of them" please can you explain what you mean? In webform's configuration you can enable the fields/activities' fields that you want to be updated.
Comments.UserDisplayName: JohnFF
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-27T14:46:41.733Z
Comments.Text: This is only related to multiple record custom field sets.  I set up a few, but in hindsight they appear to be very limiting.  Getting creative with Activities and/or Cases seems the easier way to go in the long run for things that you want multiple records of.
Comments.UserDisplayName: pmoz
Tags: <custom-fields><webform-civicrm><drupal-views>
Title: How to target record id for multiple record custom field set in Webfom?
ThreadText: # How to target record id for multiple record custom field set in Webfom?
  
  (Asked by: username_0 on 2015-10-23)
  
  Drupal 7.40
  Webform-Civi Integration 7.x-4.13
  
  Similar to Graham's question [here](https://civicrm.stackexchange.com/questions/6360/how-are-multiple-record-custom-fields-handled-in-drupal-webforms).
  
  Use case:
  Setting up goal plans that look like this:
  
  Long-Term Goal 1  
  Short-Term Goal A  
  Short-Term Goal B  
  Short-Term Goal C
  
  Long-Term Goal 2  
  Short-Term Goal A  
  Short-Term Goal B  
  Short-Term Goal C
  
  Long-Term Goal 3  
  Short-Term Goal A  
  Short-Term Goal B  
  Short-Term Goal C
  
  etc.
  
  I've created a custom field set that allows multiple records.
  Each record contains:
  
  Long-Term Goal  
  Short-Term Goal A  
  Short-Term Goal B  
  Short-Term Goal C
  
  We have a View that lists the goal plans with a link to edit the goal plan profile. However, it is large and confusing for the end user.
  
  I'd like to create a Webform that targets each individual record not all of them.
  
  Custom fields have ids in their tables, but I can't see a way to implement them in Views or Webform.
  
  I believe I could expose it to Views but even if I can, is there any way for Webform to use the record id?
  
  **Tags:** custom-fields, webform-civicrm, drupal-views
  
  > **Comments:**
  > **username_1**: Will flesh out this option if you want, but for a very similar use case we opted to use Activities rather than contact based custom fields  
  > **username_0**: Activities and Cases seem the way to go in our case too Pete.  We are in the process of converting most multiple record custom field sets to either Activities or Cases.  
  > **username_2**: When you say "I'd like to create a Webform that targets each individual record not all of them" please can you explain what you mean? In webform's configuration you can enable the fields/activities' fields that you want to be updated.  
  > **username_0**: This is only related to multiple record custom field sets.  I set up a few, but in hindsight they appear to be very limiting.  Getting creative with Activities and/or Cases seems the easier way to go in the long run for things that you want multiple records of.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-04-10. Score: 2 | Accepted answer
  
  Currently there is no way to target a single record of a multiple record custom field set with a Webform. As stated above, using Activities and Cases for this type of data as opposed to multiple record custom field sets is the better option for our use case.
  
  
  ---
  
  