Support

Home Forums Event Espresso Premium duplicate event attendee #1 info for additional registrants

duplicate event attendee #1 info for additional registrants

Posted: April 17, 2019 at 12:49 pm


lisa burgess

April 17, 2019 at 12:49 pm

Hi, is it possible to duplicate only 1 of the question groups for attendee #1 to subsequent attendees?

Example:
I have my 2 “system” question groups called:
– event attendee details
– company information

The first group contains fields like name, email, phone, other custom preference fields which would be unique to each attendee.

the second group contains company address info which predominantly will be the same for every registrant that is part of a multi-ticket purchase.

I would love if I could have people check the box to copy attendee #1’s address info, but not the first question group which is attendee details.

is this possible?

thank you,
lisa


Tony

  • Support Staff

April 18, 2019 at 7:31 am

Hi Lisa,

The copy function doesn’t really work in ‘groups’ to copy over the answers from X, Y and Z groups, it grabs all of the inputs on the primary registrant and sets the values from those inputs to all of the registrations if they have that input.

This is important because when you click that copy function EE says ‘Copy all of the inputs for the primary registrant to the other registrations’ rather than ‘Copy all of the questions from the Person Group, then the Address Group, the custom group etc etc’, which it could have done, but its not how it was designed.

So why is the above important? Because whilst what you are requesting is possible, you can’t just tell EE to ‘Copy every input from each group except the personal info group’ because at the time when EE copies the details over, it doesn’t know what group the input is in.

This means that rather than being able to exclude a group, you need to exclude individual questions. So you would need something like this:

https://gist.github.com/Pebblo/19b04ccefc13e109ad52bdd73002907a

But it’s not going to exclude all of your questions by default, right now it only excludes the First Name, Last Name and Email system questions. You’ll need to edit the exclude_array to include your additional ID’s. To get those you can find your question in Event Espresso -> Registration Form -> Questions.

Note the ID and add it to the array, for example, if I wanted to exclude this ‘Dropdown Test’ question from the copy function its ID 11 so my exclude array would be:

var exclude_array = [ 
	'fname', 
	'lname', 
	'email',
	'11'
];

Add as many ID’s as you wish (don’t forget the comma on the previous one when adding another) and then add that function to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

The support post ‘duplicate event attendee #1 info for additional registrants’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 2 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!