Answers.Body: <p>You would need to created an extension using civicrm hook 'hook_civicrm_postProcess' which gets invoked when a civicrm form is submitted as you want the actions to be taken upon profile submission so this should work for you. In the hook you can create the relationships through the API call.</p>
  
  <p><a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postProcess/" rel="nofollow noreferrer">Detailed documentation</a> on hook.</p>
  
  <p>Hope this helps.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-16T19:54:43.953Z
Answers.Text: What I have read about Hook is that it is for forms? I literally created a profile and used it on our website to be filled out directly using theProfile-Create Mode.
Answers.UserDisplayName: Melinda
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-15T21:53:47.810Z
Answers.LastActivityDate: 2018-01-15T21:53:47.810Z
Answers.UserDisplayName: Hassan Farooq
Answers.Body: <p>You would have to find out all the steps the profile goes through and potentially use the post or apiWrapper hook to create the parent. Difficult to say without knowing all the details.</p>
  <p>But you could also use the Form Processor extension rather than creating a profile to get there? Documentation on the Form Processor extension can be found here: <a href="https://docs.civicrm.org/formprocessor/en/latest/" rel="nofollow noreferrer">https://docs.civicrm.org/formprocessor/en/latest/</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-03T07:11:12.407Z
Answers.LastActivityDate: 2020-08-03T07:11:12.407Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>How do i add parent information to a teenage volunteer profile so that when a new volunteer fills out their profile, it creates a parent relationship and contact as well.
  I am using Profile-Create Mode to allow the data input on our website.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-15T21:34:03.353Z
Comments.Text: Possible duplicate of [How to allow parents to register children but still record their own info](https://civicrm.stackexchange.com/questions/169/how-to-allow-parents-to-register-children-but-still-record-their-own-info)
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <profile><relationships>
Title: How do i add parent information to a teenage volunteer profile?
ThreadText: # How do i add parent information to a teenage volunteer profile?
  
  (Asked by: username_0 on 2018-01-15)
  
  How do i add parent information to a teenage volunteer profile so that when a new volunteer fills out their profile, it creates a parent relationship and contact as well.
  I am using Profile-Create Mode to allow the data input on our website.
  
  **Tags:** profile, relationships
  
  > **Comments:**
  > **username_1**: Possible duplicate of [How to allow parents to register children but still record their own info](https://civicrm.stackexchange.com/questions/169/how-to-allow-parents-to-register-children-but-still-record-their-own-info)  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2018-01-15. Score: 0
  
  You would need to created an extension using civicrm hook 'hook\_civicrm\_postProcess' which gets invoked when a civicrm form is submitted as you want the actions to be taken upon profile submission so this should work for you. In the hook you can create the relationships through the API call.
  
  [Detailed documentation](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postProcess/) on hook.
  
  Hope this helps.
  
  > **Comments:**
  > **username_0**: What I have read about Hook is that it is for forms? I literally created a profile and used it on our website to be filled out directly using theProfile-Create Mode.  
  
  ---
  
  ### Answer by username_3 on 2020-08-03. Score: 0
  
  You would have to find out all the steps the profile goes through and potentially use the post or apiWrapper hook to create the parent. Difficult to say without knowing all the details.
  
  But you could also use the Form Processor extension rather than creating a profile to get there? Documentation on the Form Processor extension can be found here: <https://docs.civicrm.org/formprocessor/en/latest/>
  
  
  ---
  
  