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.
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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.