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 CiviEvent (Moderator: Yashodha Chaku) »
  • Getting Email-5 to Persist to additional participants
Pages: [1]

Author Topic: Getting Email-5 to Persist to additional participants  (Read 650 times)

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Getting Email-5 to Persist to additional participants
February 10, 2011, 06:06:10 pm
Is there a way to get the email address saved for the first participant to prepopulate the email address field for the additional participants being registered for the same event.

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Getting Email-5 to Persist to additional participants
February 10, 2011, 09:18:27 pm
This can be done  by using civicrm Hooks ( http://wiki.civicrm.org/confluence/display/CRMDOC33/CiviCRM+hook+specification ), hook_civicrm_buildForm and hook_civicrm_postProcess in this case, and using session ( CRM_Core_Session object OR may be $_SESSION ).

First you need to store the email id submitted in main event registration form in the session ( using hook_civicrm_postProcess ) and then you can implement hook_civicrm_buildForm for additional participant form to set default email field value by taking it from session.


Rajan

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Getting Email-5 to Persist to additional participants
February 11, 2011, 09:04:04 am
Thank you Rajan. I guess my next step is finding someone to code this for me and have it in place before 9 AM on Monday (lol). This is, unfortunately, outside my skill set.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Getting Email-5 to Persist to additional participants

This forum was archived on 2017-11-26.