Create CSV file

Avatar

Avatar

rochandl

Avatar

rochandl

rochandl

04-01-2021

Similar to the OOTB functionality with the Email Submit Button where you can specify a PDF or XML file to get attached, does anyone have a script to generate a CSV file of the form data?  The barcode option has been explored but looking for the simple click functionality to generate that CSV file. 

 

Designer is in scope, not AEM Forms Server.  

 

Thank You

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

radzmar

MVP

Avatar

radzmar

MVP

radzmar
MVP

08-01-2021

As long the form will be used with Acrobat Standard or Pro and not Reader you can use JavaScript to create attachments by the creatDateObject(). Text files are supported, so you can create such file with a csv-extension and fill it with data from your form. This csv-file then can be opened then the attachment pane.