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) »
  • Setting default participant role?
Pages: [1]

Author Topic: Setting default participant role?  (Read 1279 times)

tmccartney

  • I post frequently
  • ***
  • Posts: 154
  • Karma: 9
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34-cll-lve
  • PHP version: 5.3.28
Setting default participant role?
February 12, 2009, 05:37:47 am
Greetings:

I just re-installed Civicrm with fresh databases and tables and am in the process of re-creating my event.  I seem to recall, in the custom profile I had before, being able to specify the default value for "participant role."  But now, I can't see where or how to do that.  In the editing screen for that profile field (which is "participant role" from the "participants" category), there's no place to set the default value, as there is in the custom data configuration.

Am I missing something?

Thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Setting default participant role?
February 12, 2009, 01:55:45 pm
I don't think there's a way to do this currently via admin settings. The profile field doesn't respect the default Role set at the Event level - which is used when the field is not exposed to the "public".  You could create a custom copy of the template and add some javascript to set that option value for that field if it's not set.

Update: I think this is something we should fix - I've filed an issue for 2.2 you can follow here:
http://issues.civicrm.org/jira/browse/CRM-4122

(might be an easy 1-2 liner to backport if you need it once it's finished)
« Last Edit: February 12, 2009, 02:45:58 pm by Dave Greenberg »
Protect your investment in CiviCRM by  becoming a Member!

tmccartney

  • I post frequently
  • ***
  • Posts: 154
  • Karma: 9
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34-cll-lve
  • PHP version: 5.3.28
Re: Setting default participant role?
February 12, 2009, 02:49:23 pm
Thanks, Dave.  If this gets done, I'm definitely up for editing whatever PHP needs to be edited to make this work.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Setting default participant role?
February 12, 2009, 03:58:38 pm
Fix has been committed for 2.2.

The diff is here - probably will work in 2.1 (of course test in a non-production environment first):
http://fisheye.civicrm.org/viewrep/CiviCRM/branches/v2.2/CRM/Event/Form/Registration/Register.php?r1=19642&r2=19875
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Setting default participant role?

This forum was archived on 2017-11-26.