This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Export Checkbox Data as Numerical Values for CSV


  1. ingkavet
    Member

    I'm setting up a new form for my site that requires users to fill in product information that then needs to be exported to a CSV by me. This CSV is intended to speed up my import of this info to my product database.

    Is there a way to
    1) Assign the numerical value to each option in a checkbox or drop down menu?
    2) Export this into a CSV showing the numerical values and not the text string?

    thanks!

    Posted 14 years ago #
  2. ingkavet
    Member

    When I look at the source code of the page, I can see the checkbox has something like this for each item:

    <input id="element_13_2" name="element_13_2" class="element checkbox" type="checkbox" value="1" />

    So I think I want to be able to set the value to a number of my choosing for each item so that when it exports to CSV it's the same as my other database.

    Does this make sense?

    thanks in advance.

    Posted 14 years ago #
  3. ingkavet
    Member

    Does anyone understand my issue?

    I need to export checkbox data and assign it to exact numbers I use in another database.

    Any help is appreciated.

    thanks

    Posted 14 years ago #
  4. yuniar

    So, on the above example, instead of having the value '1', you need to assign a certain number?

    It is possible, but it would require some manual coding to override the value of each checkbox.

    Please contact us directly and let us know the following:
    - the URL to your form
    - which checkbox you would like to assign the values
    - what values you would like to assign
    - send us your export_entries.php file

    We'll help you with one of your form, so that you could learn it for your other forms.


    MachForm Founder

    Posted 14 years ago #

RSS feed for this topic

Reply