Support

Home Forums Event Espresso Premium Export Data

Export Data

Posted: May 16, 2019 at 1:19 pm


shooin

May 16, 2019 at 1:19 pm

we are looking at fields in our database export on the events. Is there anyway that I can populate a field so that it carries throughout the form. For example… customer fils out the name of 5 people. Of course each name and email is different, however the organization. Can we make it so they only have to fill that out once and it will show up inside the database export.

Thanks

Jason


Tony

  • Support Staff

May 16, 2019 at 3:55 pm

Hi Jason,

With a snippet of code you can make the Registration CSV Report use the values from the ‘Primary Registrant’ for any question the additional registrant has unasnwered if that is what you are looking for?

To be clear, it will not store the values in the database for the additional registrants, it just pulls the value for the primary registrant and adds it to the CSV if the registration doesn’t have a value set.

So in above, you’d have the ‘Primary Registrant’ question groups to include an Organization question, the additional registrants would not. Then on the CSV export, the additional registrants would all have the primary registrants answer in place of that question.

Would that work for you?


shooin

May 17, 2019 at 5:11 am

That will be perfect! Where is it?

Thanks!

Jason


Tony

  • Support Staff

May 17, 2019 at 5:21 am

The snippet is here:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/admin/tw_ee_populate_additional_registrants_questions_using_primary_reg.php

You can add that 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 ‘Export Data’ 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 1 month ago ago

Topic Tags

Tagged: 

Notifications

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