Title: Bug in CSV after adding form fields
Last modified: November 17, 2017

---

# Bug in CSV after adding form fields

 *  [aledef](https://wordpress.org/support/users/aledef/)
 * (@aledef)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/bug-in-csv-after-adding-form-fields/)
 * Hi,
    you made a great work with CFDB7!
 * I think I found just a little bug.
 * Let’s say you create a form and start receiving mails, and then decide to add
   new fields to that form and export data to CSV.
    If you do so the collected data
   in CSV will go under wrong columns and the CSV will get messy.
 * Alessio

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Arshid](https://wordpress.org/support/users/arshidkv12/)
 * (@arshidkv12)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/bug-in-csv-after-adding-form-fields/#post-9693888)
 * Please export csv and delete all data.
 *  Thread Starter [aledef](https://wordpress.org/support/users/aledef/)
 * (@aledef)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/bug-in-csv-after-adding-form-fields/#post-9694078)
 * Exporting CSV after adding new columns to forms is useless.
    The data in exported
   CSV are messy and CSV is unusable. The solution is fixing CSV export function
   in order to obtain coherent data even after adding form fields.
 *  [actxc](https://wordpress.org/support/users/actxc/)
 * (@actxc)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/bug-in-csv-after-adding-form-fields/#post-9694629)
 * May be this could help:
    [https://wordpress.org/support/topic/csv-export-with-checkbox-and-conditional-fields-is-not-covered/](https://wordpress.org/support/topic/csv-export-with-checkbox-and-conditional-fields-is-not-covered/)
 *  Thread Starter [aledef](https://wordpress.org/support/users/aledef/)
 * (@aledef)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/bug-in-csv-after-adding-form-fields/#post-9698372)
 * Hi actxc,
    I understand that your function does what follows: – removes the unnecessary
   conditional fields – removes CR-LF from textfields – orders the export array 
   according to the header as defined in the form – adds a dash into empty fields
 * I’m afraid this does not help.
 *  Plugin Author [Arshid](https://wordpress.org/support/users/arshidkv12/)
 * (@arshidkv12)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/bug-in-csv-after-adding-form-fields/#post-9698387)
 * Thanks for your reply.
    Please follow bellow step before add new field after 
   few days. First expor current CSV file. Then delete all saved data and add new
   field.
 *  [actxc](https://wordpress.org/support/users/actxc/)
 * (@actxc)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/bug-in-csv-after-adding-form-fields/#post-9698607)
 * it solved my problem, when I started to use conditional fields
    Plugins: Contact
   Form 7 Contact Form 7 Conditional Fields Contact Form CFDB7
 * I thought it might solve other CSV problems as well.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Bug in CSV after adding form fields’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-cfdb7/assets/icon-256x256.png?rev=1619878)
 * [Database Addon for Contact Form 7 - CFDB7](https://wordpress.org/plugins/contact-form-cfdb7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-cfdb7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-cfdb7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-cfdb7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-cfdb7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-cfdb7/reviews/)

## Tags

 * [cvs](https://wordpress.org/support/topic-tag/cvs/)

 * 6 replies
 * 3 participants
 * Last reply from: [actxc](https://wordpress.org/support/users/actxc/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/bug-in-csv-after-adding-form-fields/#post-9698607)
 * Status: not resolved