CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Create activity on profile submit
Pages: [1]

Author Topic: Create activity on profile submit  (Read 697 times)

danaskallman

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
    • Tadpole Collective
  • CiviCRM version: 4.5.6
  • CMS version: WordPress
  • MySQL version: 5.5
  • PHP version: 5.5
Create activity on profile submit
October 10, 2014, 07:20:50 am
I am looking for examples on how to trigger an activity being creating and a profile submit. On the wiki I see the PostProcess hook:
https://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification#CiviCRMhookspecification-hook_civicrm_postProcess

But I am still not fully understanding what I need to do when a profile is submitted to trigger the event. Are there any examples I can be pointed too.

This is to use on a WP site.

John.K

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 5
  • CiviCRM version: 4.x
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5
Re: Create activity on profile submit
April 07, 2015, 02:49:43 am
I'm struggling with this as well. My main issue is that the $form doesn't store the contact ID of the contact, so we don't know who to 'target' the api call to create the activity at (see http://civicrm.stackexchange.com/questions/213/can-i-find-the-target-contact-id-in-hook-civicrm-buildform)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Create activity on profile submit

This forum was archived on 2017-11-26.