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


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.

You must be logged in to reply to this support post. Sign In or Register for an Account

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: publish

Updated by  Oguzhan Altun 1 week, 3 days ago ago

Topic Tags

Notifications

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