We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Solspace's Freeform Module. How to export CSV?

Development and Programming

aimelise's avatar
aimelise
31 posts
16 years ago
aimelise's avatar aimelise

Hello. I’m using Solspace’s Freeform module on this monster student enrollment application at http://gsis.amystoddard.com/admissions/application/. I figured the modules’s EXPORT button would output a tab-delimited .csv file. No dice. Between the natural line breaks that are happening in textarea submissions, etc., the EXPORT feature is useless. I’ve been combing the Solspace forums looking for a solution to no avail. The form delivers a beautiful text email to the recipients of my choice, complete w/ attachments. Now the client wants the form data submitted in a CSV file. I’m wondering if you have any suggestions or have run across a form processor for EE that’s just as powerful as Solspace’s Freeform module.

I’ve seen the recommendation to use the CSVee plugin. How do the two work in tandem exactly?

Thanks for any suggestions you might have.

       
aimelise's avatar
aimelise
31 posts
16 years ago
aimelise's avatar aimelise

I think I’m figuring out the answer to my own question. Example how to query the freeform table:

{exp:csvee filename="call_registration.csv" fixed_width="200" group_id="1|6" query="SELECT first_name, last_name, call_email, phone1, questions, mailinglist, template FROM exp_freeform_entries WHERE template='callregistration'"}

I’ll give this a whirl and repost how it goes.

       
aimelise's avatar
aimelise
31 posts
16 years ago
aimelise's avatar aimelise

This CSVee plugin works great, but how can I also include links to the attachments that are submitted as part of my Freeform form? It looks like all the attachments are stored in a separate table: exp_freeform_attachments. What’s more, the path to where the attachment lives is the full server path. How could I query both tables (“exp_freeform_entries” and “exp_freeform_attachments”) and still export a single CSV? Is that even possible?

       
Kevin Gerich's avatar
Kevin Gerich
213 posts
16 years ago
Kevin Gerich's avatar Kevin Gerich

You should be able to do that by joining the 2 tables in your select statement.

Jim

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.