Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Fillable Forms to CSV file - form data is embedded with field names

Community Beginner ,
May 25, 2021 May 25, 2021

I am creating an MS-Word form with tabbed underlines for field values.  Some fields have multiline input.  When copy out the data to CSV, I find some of the field data with the field names.  I'm trying to make this as "field names on the left and field data on the right" as possible, but I'm still finding the same result though it varies on which lines it happens to.  I've called Adobe Tech support and simply found that it is experimentation.

 

Please, don't let that be the answer.  There must be a way to do this albeit this IS acknowledged to be a rudimentary tool for getting data from a form into a csv.  I'm willing to work with someone on this if they have the time.  I need to get this to work...the only alternative is to have them input data into Excel 😞

 

TOPICS
Create PDFs , Edit and convert PDFs , PDF forms
3.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Beginner ,
Jun 02, 2021 Jun 02, 2021
LATEST

I've received a response from Adobe Technical Support. The steps are as follows:
1. Open PDF in Adobe Acrobat DC (Reader will not work for this purpose)
2. Select Tool "Prepare Form"
3. More Tools..."Export Data"
     4. Select "Text Files"
     5. Result file has 1st row with field names (in ALPHABETICAL order)
     6. Data in the corresponding columns of the 2nd row
3. More Tools..."Merge Data into Spreadsheet"
     4. Click "Add Files" add the file you're working on
     5. Select "Export"
     6. Result defaults to report.csv as a csv file.
     7. Result file has 1st row with Field Names (in TAB order)
     8. Data in the corresponding columns of the 2nd row

 

What a learning experience. Thanks for all of your help in this community forurm as well!!

 

Peter

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 26, 2021 May 26, 2021

Hi,

Can you share a screenshot to better understand your issue?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 26, 2021 May 26, 2021

Yeah, it's not very clear what you mean... Do you want to change the structure of the output file from having the fields names and values in two rows to having them in two columns, basically?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 26, 2021 May 26, 2021

Do you mean that you are creating a PDF form from MS Word?  Cause we can't help you with a Word Form. 

 

What do you mean by "copy out the data to CSV"?  What tool/button/menu are you using for this?

 

The natural format for putting data into any spreadsheet/DB like format is for the field names to be the column names. And for all the data in a single set to appear in a single row.    If you want something else you'll have to write a script to do it. 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 02, 2021 Jun 02, 2021

[Sorry for not getting back right away! - I have "Email me when someone replies" but didn't see anything]

Steps to Perform this:

1. Create MS-Word Document with fieldname text followed by 1 or more underline-tabs for fillable fields.

2. Create Acrobat PDF where underlined-tabs become fillable fields and save

3. Fill in the Form in step 2

4. Select all in Form

5. On a field do a right-click and Save As... Comma Separated Values (Untitled.csv by default)

6. Open in Excel... observe that some of the filled in data is embedded with the text preceeding it and NOT comma separated.  Note - a raw text editor can confirm there are no commas separating the fieldtext and associated data.

 

Screen Shot 2021-06-02 at 5.50.51 AM.pngexpand imageScreen Shot 2021-06-02 at 5.51.37 AM.pngexpand imageScreen Shot 2021-06-02 at 5.52.16 AM.pngexpand imageScreen Shot 2021-06-02 at 5.54.23 AM.pngexpand imageScreen Shot 2021-06-02 at 5.54.49 AM.pngexpand imageScreen Shot 2021-06-02 at 5.55.57 AM.pngexpand imageScreen Shot 2021-06-02 at 6.07.48 AM.pngexpand image

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 02, 2021 Jun 02, 2021

Your'e not exporting the form data, but copying the entire contents of the file. The two are not the same...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 02, 2021 Jun 02, 2021

Try67, I was told to do it this way from Adobe Tech Support.  Is there another way to effectively export the data to CSV?  Please share the method.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 02, 2021 Jun 02, 2021

If it has to be a CSV file then you would need to use a script, but if you can use a tab-delimited text file instead of a CSV file (it's very easy to convert one format to another in Excel) then you can do it by going to Tools - Forms - More - Export Form Data and selecting the file-type as a text file.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 02, 2021 Jun 02, 2021

It is extreemly sad that an Adobe support tech would tell you to do some so horribly wrong, but it's not unexpected. 

 

There are a couple of ways to export form data without a script. Both are on the "More..." popup menu in the Acrobat "Prepare Forms" panel.  Here's a screenshot.

 

ExportFormData.jpgexpand image

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 02, 2021 Jun 02, 2021
LATEST

I've received a response from Adobe Technical Support. The steps are as follows:
1. Open PDF in Adobe Acrobat DC (Reader will not work for this purpose)
2. Select Tool "Prepare Form"
3. More Tools..."Export Data"
     4. Select "Text Files"
     5. Result file has 1st row with field names (in ALPHABETICAL order)
     6. Data in the corresponding columns of the 2nd row
3. More Tools..."Merge Data into Spreadsheet"
     4. Click "Add Files" add the file you're working on
     5. Select "Export"
     6. Result defaults to report.csv as a csv file.
     7. Result file has 1st row with Field Names (in TAB order)
     8. Data in the corresponding columns of the 2nd row

 

What a learning experience. Thanks for all of your help in this community forurm as well!!

 

Peter

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines