Title: Conditional export csv
Last modified: August 24, 2016

---

# Conditional export csv

 *  [ranell](https://wordpress.org/support/users/ranell/)
 * (@ranell)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/conditional-export-csv/)
 * Hello,
 * I want to export my table which is constituted by :
    Submitted | your-email |
   checkbox-36 | Submitted Login | Submitted From
 * My checkbox-36 can have one of the two values, or both, so three possibility :
   
   1) subscribe to newsletter 2) receive additional offer 3) subscribe to newsletter,
   receive additional offer
 * I want to export my cqv only if checkbox-36==subscribe to newsletter
 * What is the simpliest way to do this ?
 * [https://wordpress.org/plugins/contact-form-7-to-database-extension/](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
 * Thanks a lot !

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

 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/conditional-export-csv/#post-6069390)
 * In the short code builder page, create an export link with a filter.
 * Choose your form, and Export File type CSV.
 * In “filter” put
    `checkbox-36=subscribe to newsletter`
 *  or if you want submissions with that selected or both, put
 * `checkbox-36~~/.*subscribe to newsletter.*/`
 *  Thread Starter [ranell](https://wordpress.org/support/users/ranell/)
 * (@ranell)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/conditional-export-csv/#post-6069392)
 * Oh thanks ! I’ve tried something similar but it do not work. i’m wondering if
   accent and special char could be probleme in this case ?
 * I’m writing my choice in french which give me :
    checkbox-36=s’inscrire à la 
   newsletter
 * which, in the url bar is transformed into something like :
    action=cfdb-export&
   form=Contact&filter=checkbox-36%3Ds%27inscrire%20à%20la%20newsletter&content=&
   enc=HTML
 * my table is empty unfortunately, thanks a lot !
 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/conditional-export-csv/#post-6069393)
 * Try replacing `à` with `%C3%A0` (the url-encoded version of the character)
 *  Thread Starter [ranell](https://wordpress.org/support/users/ranell/)
 * (@ranell)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/conditional-export-csv/#post-6069397)
 * I’ve tried both in the url bar and in the filter
    checkbox-36=s’inscrire %C3%
   A0 la newsletter
 * my tables are still empty unfortunately

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

The topic ‘Conditional export csv’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-to-database-extension_ffffff.
   svg)
 * [Contact Form DB](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-to-database-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [ranell](https://wordpress.org/support/users/ranell/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/conditional-export-csv/#post-6069397)
 * Status: not resolved