1

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.

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 on hook.

Hope this helps.

  • 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. – Melinda Jan 16 '18 at 19:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.