Title: Export link CSS button
Last modified: August 30, 2016

---

# Export link CSS button

 *  [Urdz](https://wordpress.org/support/users/urdz/)
 * (@urdz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/export-link-css-button/)
 * Is it possible I could create a CSS button for an export link? So when I would
   click on the button export link would work?
 * [https://wordpress.org/plugins/contact-form-7-to-database-extension/](https://wordpress.org/plugins/contact-form-7-to-database-extension/)

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

 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/export-link-css-button/#post-6552889)
 * You can use the short code [cfdb-export-link] to generate a link on a page. You
   could attach it to a button you put in your page.
 *  Thread Starter [Urdz](https://wordpress.org/support/users/urdz/)
 * (@urdz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/export-link-css-button/#post-6553193)
 * 
 * Can I use it like this?
 *  Thread Starter [Urdz](https://wordpress.org/support/users/urdz/)
 * (@urdz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/export-link-css-button/#post-6553194)
 * `<a href="[cfdb-datatable form="myForm1" hide="Submitted From,Submitted Login"]"
   class="myExcelButton">ExcelButton</a>`
 * Like this I mean.
 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/export-link-css-button/#post-6553195)
 * Yes, try it.
 * But your example might have a problem. Make single quotes for href=’…….’ because
   you are using double quotes inside the short code.
 *  Thread Starter [Urdz](https://wordpress.org/support/users/urdz/)
 * (@urdz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/export-link-css-button/#post-6553214)
 * Thank you, it works. But when I click on my button it should generate excel file,
   but when it opens it’s an empty file. But when I open it in the plugin, short
   code is working.
 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/export-link-css-button/#post-6553215)
 * Try this:
 *     ```
       <a href='[cfdb-export-link form="myForm1" enc="CSVUTF8BOM" hide="Submitted From,Submitted Login"]' class="myExcelButton">ExcelButton</a>
       ```
   
 *  Thread Starter [Urdz](https://wordpress.org/support/users/urdz/)
 * (@urdz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/export-link-css-button/#post-6553216)
 * I messed up with permissions, but thank you! It opens now, but in excel it does
   not sort my table in excel table. There is just messy text.
 *  Thread Starter [Urdz](https://wordpress.org/support/users/urdz/)
 * (@urdz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/export-link-css-button/#post-6553218)
 * I put it in the Excel Internet Query and it generates a table in Excel, but only
   in plugin, when I type my wordpress password. When I put the shortcode in to “
   herf=’ it does not generate a table in Excel it does not ask me for my password
   in Excel, it puts my table just in one column.
 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/export-link-css-button/#post-6553220)
 * You can also try this enc=”TSVUTF16LEBOM” in case Excel is not reading it correctly:
 *     ```
       <a href='[cfdb-export-link form="myForm1" enc="TSVUTF16LEBOM" hide="Submitted From,Submitted Login"]' class="myExcelButton">ExcelButton</a>
       ```
   

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

The topic ‘Export link CSS button’ 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/)

 * 9 replies
 * 2 participants
 * Last reply from: [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/export-link-css-button/#post-6553220)
 * Status: not resolved