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) »
  • Pending from Wait List doesnt' populate the custom fields
Pages: [1]

Author Topic: Pending from Wait List doesnt' populate the custom fields  (Read 309 times)

CousiMo

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 2
Pending from Wait List doesnt' populate the custom fields
October 02, 2013, 06:54:24 pm
After a participant registered and is marked as pending from wait list, an email gets sent to the participants asking them to confirm their registration , they hit confirm and all the fields are populated (name email address etc ) with the exception of the custom fields.   the custom fields are blank, even though they are recorded in the db


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Pending from Wait List doesnt' populate the custom fields
October 03, 2013, 03:02:42 am

what version of civicrm are you using? might want to ensure that you are using the latest 4.3.x version

if the problem still exists in the latest 4.3.x, would be great if you can investigate and submit a patch

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

CousiMo

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 2
Re: Pending from Wait List doesnt' populate the custom fields
October 03, 2013, 10:29:09 am
we just added the following to one of our custom modules. not ideas but for now its adding the fields i needed

we are using 4.3.4 one before the latest


if ($formName == 'CRM_Event_Form_Registration_Register') {
    if (isset($form->_defaults['participant_id'])) {
      $params = array(
        'version' => 3,
        'sequential' => 1,
        'id' => $form->_defaults['participant_id'],
        'return' => 'custom_294',
        'return' => 'custom_117',
      );
      $result = civicrm_api('Participant', 'get', $params);
      if ($result['is_error']) {
        return;
      }
      // setting default values
      $defaults['custom_294'] = $result['values'][0]['custom_294'];
      $defaults['custom_117'] = $result['values'][0]['custom_117'];
      $form->setDefaults($defaults);
    }
 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Pending from Wait List doesnt' populate the custom fields

This forum was archived on 2017-11-26.