Support

Home Forums Event Espresso Premium EE4 Registration download csv: Remove custom questions from csv download

EE4 Registration download csv: Remove custom questions from csv download

Posted: March 19, 2020 at 5:45 am

Viewing 3 reply threads


Oguzhan Altun

March 19, 2020 at 5:45 am

Hello,

When I download the CSV registrations report, some of the rows are missing some data, therefore the final columns are not aligned.

I think that’s because some events have different custom questions, which is why each registration has more or less columns depending on custom questions for that event. Therefore the additional rows are not aligned at the end.

So my question is if it’s possible to remove custom questions completely from the download? This way the additional columns added via custom code can be fully aligned.


Oguzhan Altun

March 19, 2020 at 5:47 am

Another solution could be to add the new columns before custom questions, right after phone number column for example.


Tony

  • Support Staff

March 19, 2020 at 6:09 am

Hi there,

One option for this is to use a snippet which essentially ‘whitelists’ columns, like this:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/admin/registration-reports/core/tw_ee_registration_report_limit_columns_shown.php

So you’d add all of the coloumns you want to include in the CSV $fields_to_exclude_from_csv (column names must match exactly) and as the name suggestes they will be included in the CSV in the order set there.

Another solution could be to add the new columns before custom questions, right after phone number column for example.

This is possible although you’ll need to update your custom function to target a specific column to add yours after.

If the above solution doesn’t work for you I can add some more details on this.


Oguzhan Altun

March 19, 2020 at 12:13 pm

Hi Tony,

The first solution worked perfectly, thank you for the quick help.

Viewing 3 reply threads

The support post ‘EE4 Registration download csv: Remove custom questions from csv download’ 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.

Event Espresso