Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Email Submit button

Avatar

Level 2

Is it possible to send the XML file as well as the pdf with one click of the button?

Background:

I have a form which business users fill out and submit to HR.  HR wants to print a hidden part to the form as well as use XML file to populate their Excel spreadsheet.

Thanks,

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

You can use script to set up two submissions: one with a PDF attachement and a second with an XML attachement.

I don't know of any way to script where both the PDF AND the XML are attached to a single email.

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

You can use script to set up two submissions: one with a PDF attachement and a second with an XML attachement.

I don't know of any way to script where both the PDF AND the XML are attached to a single email.

Niall

Avatar

Level 2

I decided to send the pdf in the email alone and then put a button in the hidden area on the form for the recipient to Export Data to XML file.  They can then open in Excel.

Is there anyway to stipulate only certain fields/data sent in the XML and the order these fields appear in the XML file?