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

Submit a form - output as xlsx or csv instead as a full PDF?

Explorer ,
Jul 26, 2023 Jul 26, 2023

Hi all,

I have created a fillable form (effectively a 13 page ordering catalogue for staff) with 'reset' and 'submit' buttons, and with drop-down fields where staff can change the default number (zero) to a number depending on quantity required.

This form works well, but with sometimes up to 30 items per page, and with staff only maybe selecting one item as 'quanity required' (i.e. 29 items may be still at QTY=0, and one item may be at QTY=1), this may cause issues at the 'supplier-end' when it comes to processing an order. That is to say that they may end up printing 13 pages, or scanning through 13 pages on-screen, and manually processing an order which is laborious and an environmentally poor process (not to mention the possible errors made when trying to process these orders).

 

Is it possible to have an output as a '.xlsx' or '.csv' where line items throughout the form are ANYTHING OTHER THAN zero (default)?

 

In other words, it is possible that only 6 items are ordered throughout the available 13 pages, and rather than having 13 pages submitted by email as a PDF file that may be around 2MB... could one table be the output where only those 6 items are listed using the standard table headers that I have kept as a constant;

Column 1 = QTY

Column 2 = DESCRIPTION

Column 3 = CODE

Column 4 = ITEM 

So that what the staff see's on page 2 of our 14 page form (for example) is as below;

Screenshot 2023-07-26 at 15.20.52.pngexpand image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

We can see that only two items have had their default QTY fields changed from 0 (default) to a number other than 0.

 

The output would be ideally seen when the form is submitted for this page as;

Screenshot 2023-07-26 at 15.23.13.pngexpand image

 

 

 

 

Which is far easier to read and print if necessary...

 

I understand I may be asking a lot of this program to do this?

 

Thanks for any help

 

Simon

TOPICS
How to , PDF forms
302
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 ,
Jul 26, 2023 Jul 26, 2023

Yes, that's possible using a custom-made script.

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
Explorer ,
Jul 26, 2023 Jul 26, 2023

Thank you @try67... I'm OK at creating forms, replacing pages etc on Acrobat (which I had to do a few times to get the final 'design') and in using InDesign (for creating the PDF page/exports to begin with)... but custom scripts are (at present) beyond me...

Do you have any pointers with regards a starting point for this? (I also understand that may be a little like asking how I may start being fluent in German... so I apologise in advance for any degree if ignorance).

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 ,
Jul 26, 2023 Jul 26, 2023
LATEST

Basically you would need to iterate over all the groups of fields in the file (hopefully you gave them meaningful and consistent names, not just "text1", "text2", etc.), checking the value of the Qty field in each group. If non-zero, add the groups values to a string, and at the end of the process output that string either to the Console window (more easy to do, but requires manually copying it into Excel) or to a tab-delimited or CSV text file (more difficult, but results in a file that can be opened in Excel directly).

 

This is not a trivial task, though. If you're interested in hiring a professional to create it for you, feel free to contact me privately by clicking my user-name and then on "Send a Message".

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