Answers.Body: <p>There's no way to dynamically add fields without custom code to a profile - and that code sounds onerous.  There's a better way, though: I'd recommend creating a CiviEvent and enabling "register multiple participants" from there.</p>
  
  <p>You've tagged this "Wordpress", which rules out using Drupal Webform with CiviCRM integration.  That's another alternative for anyone else with a similar issue using Drupal.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-22T17:51:08.500Z
Answers.LastActivityDate: 2015-08-22T17:51:08.500Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>In addition to the Drupal-native and CiviCRM-native options linked above, there's also a WordPress-native option by using <a href="https://calderaforms.com/" rel="nofollow noreferrer">Caldera Forms</a> with <a href="https://github.com/mecachisenros/caldera-forms-civicrm" rel="nofollow noreferrer">Caldera Forms CiviCRM</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-27T22:56:08.893Z
Answers.LastActivityDate: 2018-09-27T22:56:08.893Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>There's now a new option, the <a href="https://github.com/twomice/com.joineryhq.profcond" rel="nofollow noreferrer">Profile Conditional</a> extension.  This extension requires some tech know-how to configure, but you need not be a programmer.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-27T19:38:43.310Z
Answers.LastActivityDate: 2018-09-27T19:38:43.310Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I am trying to set up a committee registration form where the registrant also adds contact information for three other people (more contacts being added as the number of people grows in that group). How can I do this with Civicrm? Until now I was adding custom datafields for the other 3 contacts, then I realized that more people will be added later, so I can't be creating a custom datafield per person. If I create a new profile, how can I embed it in the initial registration form? Is there a way to add fields dynamically to a form (so that the registrant can add more than 3 people during registration)?</p>
  
Tags: <wordpress><custom-fields><forms>
Title: How to dynamically add datafields/profiles in form?
ThreadText: # How to dynamically add datafields/profiles in form?
  
  (Asked by: username_0 on 2015-08-21)
  
  I am trying to set up a committee registration form where the registrant also adds contact information for three other people (more contacts being added as the number of people grows in that group). How can I do this with Civicrm? Until now I was adding custom datafields for the other 3 contacts, then I realized that more people will be added later, so I can't be creating a custom datafield per person. If I create a new profile, how can I embed it in the initial registration form? Is there a way to add fields dynamically to a form (so that the registrant can add more than 3 people during registration)?
  
  **Tags:** wordpress, custom-fields, forms
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2015-08-22. Score: 1 | Accepted answer
  
  There's no way to dynamically add fields without custom code to a profile - and that code sounds onerous. There's a better way, though: I'd recommend creating a CiviEvent and enabling "register multiple participants" from there.
  
  You've tagged this "Wordpress", which rules out using Drupal Webform with CiviCRM integration. That's another alternative for anyone else with a similar issue using Drupal.
  
  
  ---
  
  ### Answer by username_1 on 2018-09-27. Score: 0
  
  In addition to the Drupal-native and CiviCRM-native options linked above, there's also a WordPress-native option by using [Caldera Forms](https://calderaforms.com/) with [Caldera Forms CiviCRM](https://github.com/mecachisenros/caldera-forms-civicrm).
  
  
  ---
  
  ### Answer by username_1 on 2018-09-27. Score: 0
  
  There's now a new option, the [Profile Conditional](https://github.com/twomice/com.joineryhq.profcond) extension. This extension requires some username_1 know-how to configure, but you need not be a programmer.
  
  
  ---
  
  