PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

write csv with fields

  1. elinet
    Member

    Hi,
    i want to develop a php script that wrtite on the server side a .CSV file as the file that is created by exporting the form.
    On my form in addition to other components i using a drop down, and the goal is to write in the csv, not the value of the drop down, but the label corresponding to the value!

    thanks for the help

    Marco

    Posted 7 years ago on Friday June 1, 2012 | Permalink
  2. David Peralty
    Administrator

    I am not sure what your question is. Can you let me know what you are looking for from us? We aren't going to walk you through creating a customization that allows you to write a CSV server side. That is beyond the scope of our support.

    You should be able to pull out whatever labels or values saved in entries in the database without issue.

    Posted 7 years ago on Friday June 1, 2012 | Permalink
  3. elinet
    Member

    Mi question is simple, create a form with gravity for the user registration.
    I have to export the data entered by users in the .csv format, but this must be done automatically by a cron job; I can't use export provides by gravityforms.
    I also noticed that using the automatic export, of drop down fields, they are exported for their value and I am interested on the associated labels.

    Posted 7 years ago on Friday June 1, 2012 | Permalink
  4. David Peralty
    Administrator

    All of the things you want to do are possible.

    If you have a Development License, you can download the User Registration Add-on and use it to register users.

    You can auto-export the CSV, but you will have to create the customization yourself. It is beyond what I can do on this support forum.

    The labels of the dropdown fields aren't saved in the database. You would have to create a script to grab it using the gform_post_submission hook.
    http://www.gravityhelp.com/documentation/page/Gform_post_submission

    I hope this helps.

    Posted 7 years ago on Friday June 1, 2012 | Permalink
  5. elinet
    Member

    Thank you, I already downloaded the addon and created the form with user registration.
    I try to create the script.

    Marco

    Posted 7 years ago on Friday June 1, 2012 | Permalink