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) »
  • Copying fields across to multiple registrants
Pages: [1]

Author Topic: Copying fields across to multiple registrants  (Read 512 times)

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Copying fields across to multiple registrants
March 04, 2013, 11:49:38 pm
I'm putting together an event registration page for a convention for college honor societies. The first registrant is asked the college's name and chapter name. I'd like this information to copy across to other registrants (colleges will be registering at least two people, if not more). This will allow us to see which registrants came from which college/chapter, which we'd need at registration, for assigning cabins, etc.

Our printed form they only had to do that information once, so they're not going to want to do it for every single registrant.

How can I go about fixing it so that it copies that data from that first registrant across to the rest of them? Hooks was mentioned on IRC, but I've never used those, so I don't know a lot about how to use them, how I'd know what to put it so it pulls the right data, where to put that code, etc.

Thanks for any help you can give me. This is just a volunteer project I'm doing as a fellow member of the honor society, but I'd like to make the system work as well as possible so that they can use the same setup for future conventions, conferences, and trainings.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Copying fields across to multiple registrants
March 05, 2013, 05:16:49 am
I don't follow how the system is supposed to know who indeed is from the same college.

Anyhow, yes, you would need to use hooks for this and you would need PHP coding skills also. If you don't have those, I'm not certain it would be advisable to try--it can be done but it's not easy for a beginner...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Copying fields across to multiple registrants
March 05, 2013, 12:11:13 pm
i would probably consider using webform-civicrm - that way you can fire in a bunch of contacts for the same Org - then use a checksum from the webform to the event - but they would end up needing to enter the names of the participants again - so probably no gain for them - perhaps i should just delete this?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: Copying fields across to multiple registrants
March 05, 2013, 02:00:03 pm
Hershel - everyone who is registered at the same time would all be from the same college and chapter. Those fields are asked for on the first registrant, but not on the subsequent ones. So if you're registering 4 people, the first one gets those two fields, but the remaining three don't.

kharding

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 4
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7
  • MySQL version: Recent
  • PHP version: 5.3.16
Re: Copying fields across to multiple registrants
March 05, 2013, 07:12:58 pm
Could you do this by:

- Allowing a registrant to register multiple participants
- Setting different profiles for the "Additional Participants" from the first participant.
 
This might allow you to have someone, when registering, be presented with:

- How many registrants are you registering today? (Choose number)
- Longer profile for initial registrant includes college
- Shorter profile for additional registrants does not

Might work?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Copying fields across to multiple registrants
March 06, 2013, 03:30:43 am
Quote from: jsimonis on March 05, 2013, 02:00:03 pm
Hershel - everyone who is registered at the same time would all be from the same college and chapter. Those fields are asked for on the first registrant, but not on the subsequent ones. So if you're registering 4 people, the first one gets those two fields, but the remaining three don't.

I understand now. Yes, you would need coding skills and use hooks and the API for this.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: Copying fields across to multiple registrants
March 06, 2013, 02:35:03 pm
kharding - That's exactly what I'm doing. But only the first registrant gets marked with the college/chapter, and we need everyone to be marked that way without them having to input it several times.

Hershel - Thanks. I have coding skills, I've just never worked with the hooks before. Guess when I have some free time I need to look into it. But it looks to be a lot more than I have time for on this site since it's just a volunteer thing that I'm doing and I don't have a whole lot of time to spare for it.

Wish there was a way to have a profile with fields that would copy across all registrants that are being done at the same time. I'm sure a lot of people hate having to put in organization, employer, or whatever multiple times when it's all the same data.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Copying fields across to multiple registrants

This forum was archived on 2017-11-26.