Answers.Body: <p>One approach would be to use Activities. Set up a custom Activity with the required fields for Program, Year etc</p>
  <p>Another approach might be Multiple Record custom field</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-16T18:17:55.223Z
Answers.Text: Hi Peter. I'll try that idea of a custom activity and see if it works. That would be awesome if it did. I tried with a Multiple Record custom field and although it allows me to create multiple within a contact record, I can't do it from an event signup page. Cheers, Andrew.
Answers.UserDisplayName: Andrew Wasson
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-12T03:38:03.973Z
Answers.Text: how did you get on? would be good to get a +1 on here (StackExchange otherwise keeps promoting this as a Q with no accepted answers)
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-16T18:51:15.010Z
Answers.Text: Hi Peter, I'm still looking for a usable method. Neither worked for my use case. Multiple Field Records only work when you're administering a contact's record, whereas in my use case, I wanted the event registrants to be able to add them. I ended up limiting it to 3 records and used jQuery to expose them as needed. Not ideal but it gets the job done. I'm happy for StackExchange to keep promoting it. It seems like a useful option.
Answers.UserDisplayName: Andrew Wasson
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-16T19:41:32.100Z
Answers.Text: I would still most likely be tackling this via Activities (with custom fields) and webform_civicrm
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-14T22:16:47.497Z
Answers.Text: Hi Peter. That might be the best method to deal with this. This is a D7  site and we aren't using Webform CiviCRM with it so next year I'll be doing a Drupal 9 migration. I think I will dig further into refining it then. Thanks, Andrew.
Answers.UserDisplayName: Andrew Wasson
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-15T02:31:54.367Z
Answers.Text: understood. if you can give this Answer a tick then it makes SE happier
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-14T20:38:28.817Z
Answers.LastActivityDate: 2020-11-14T20:38:28.817Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>I'm not sure that this is possible but here goes:</p>
  <p>I have a requirement to collect data from Event Registrants of University Programs that they have undertaken and the years of study they have undertaken. This is not limited to a single entry for the program and each program entry can have 1 or more years of study.</p>
  <p>So an Entry could look as follows:</p>
  <p><strong>Program of Study:</strong> Basket Weaving</p>
  <p><strong>Years of Study:</strong></p>
  <ul>
  <li>1972</li>
  <li>1973</li>
  <li>1974</li>
  </ul>
  <p>Ideally I would want to have multiple fieldsets of the Program of Study and Years so the registrant could list one or more programs they undertook and the years they undertook for it.</p>
  <p>In that case it would look like:</p>
  <p><strong>Program of Study:</strong> Basket Weaving</p>
  <p><strong>Years of Study:</strong></p>
  <ul>
  <li>1972</li>
  <li>1973</li>
  <li>1974</li>
  </ul>
  <p><strong>Program of Study:</strong> Advance Basket Weaving</p>
  <p><strong>Years of Study:</strong></p>
  <ul>
  <li>1982</li>
  <li>1983</li>
  <li>1984</li>
  </ul>
  
Tags: <drupal><custom-fields><online-registration>
Title: How to add a profile with a fieldset that accepts one or more entries for event registrations
ThreadText: # How to add a profile with a fieldset that accepts one or more entries for event registrations
  
  (Asked by: username_0 on 2020-11-13)
  
  I'm not sure that this is possible but here goes:
  
  I have a requirement to collect data from Event Registrants of University Programs that they have undertaken and the years of study they have undertaken. This is not limited to a single entry for the program and each program entry can have 1 or more years of study.
  
  So an Entry could look as follows:
  
  **Program of Study:** Basket Weaving
  
  **Years of Study:**
  
  * 1972
  * 1973
  * 1974
  
  Ideally I would want to have multiple fieldsets of the Program of Study and Years so the registrant could list one or more programs they undertook and the years they undertook for it.
  
  In that case it would look like:
  
  **Program of Study:** Basket Weaving
  
  **Years of Study:**
  
  * 1972
  * 1973
  * 1974
  
  **Program of Study:** Advance Basket Weaving
  
  **Years of Study:**
  
  * 1982
  * 1983
  * 1984
  
  **Tags:** drupal, custom-fields, online-registration
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-11-14. Score: 0
  
  One approach would be to use Activities. Set up a custom Activity with the required fields for Program, Year etc
  
  Another approach might be Multiple Record custom field
  
  > **Comments:**
  > **username_0**: Hi Peter. I'll try that idea of a custom activity and see if it works. That would be awesome if it did. I tried with a Multiple Record custom field and although it allows me to create multiple within a contact record, I can't do it from an event signup page. Cheers, username_0.  
  > **username_1**: how did you get on? would be good to get a +1 on here (StackExchange otherwise keeps promoting this as a Q with no accepted answers)  
  > **username_0**: Hi Peter, I'm still looking for a usable method. Neither worked for my use case. Multiple Field Records only work when you're administering a contact's record, whereas in my use case, I wanted the event registrants to be able to add them. I ended up limiting it to 3 records and used jQuery to expose them as needed. Not ideal but it gets the job done. I'm happy for StackExchange to keep promoting it. It seems like a useful option.  
  > **username_1**: I would still most likely be tackling this via Activities (with custom fields) and webform_civicrm  
  > **username_0**: Hi Peter. That might be the best method to deal with this. This is a D7  site and we aren't using Webform CiviCRM with it so next year I'll be doing a Drupal 9 migration. I think I will dig further into refining it then. Thanks, username_0.  
  > **username_1**: understood. if you can give this Answer a tick then it makes SE happier  
  
  ---
  
  