Hi everyone
I'm trying to solve this puzzle, but I can't get it!
I created an Adaptive Form from an XSD schema and I render as PDF through an XDP
Now, on submit, I want to store the generated pdf and also send it via mail as attachment
I followed the steps in this link
AEM 6.0 Forms Help | Writing custom Submit action for adaptive forms
Everything works, I only need to attach the generated file
I know that I have to use a MultiPartEmail, but I'm missing the remaining steps
Can someone help me?
Thanks a lot
Fabio
Views
Replies
Total Likes
Are you using AEM Forms for J2EE for AEM Forms for OSGi?
Views
Replies
Total Likes
Hi smacdonald2008
We use AEM 6.3 Forms JEE
Views
Replies
Total Likes
If you can render the AF in HTML, you may utilise the DOR option to obtain the data and leverage OOTB email submit action/Form Portal store as well.
Views
Replies
Total Likes
Adding more to the suggestion. I have created 'test_fabio' as a sample form
1. Create an AF based on the XDP.
2. Bind the fields as required.
3. Select the submit action to send PDF via email. For this configure the Day CQ Mail Service beforehand. The field names in an adaptive form are called placeholders that are replaced with the value of that field after a user submits the form. To define a placeholder, specify ${<field name>} in the respective field for ex ${email_addr} in the 'To' field.
Result:
The XDP template would be sent as PDF with the value populated from the bound fields.
Views
Replies
Total Likes
Thank you everyon for the answers, guys
I really appreciate!!
I have a question: the OOTB email send doesn't store the resulting PDF, right?
because I need also to store the pdf
thanks
Fabio
Views
Replies
Total Likes
sorry guyz, maybe I wasn't too clear with my question...my fault
try to be more specific
What do I mean by "store"?
We'd like to blend the Store PDF submissionType and the Send PDF via mail
in one SubmissionType
Nowaday...we can run the 2 actions separately, we need to connect
Maybe we need to create a Worflow???
Sorry for the (maybe) stupid questions... :-(
You guyz are great!
Fabio
Views
Replies
Total Likes
Fabio,
You would need to create workflow here to perform both the steps. Not possible OOTB.
On the other hand, if you can store data in DB just submit the form to JEE workflow and let JEE process handle the form save and email action. This is in case you find Aem workflow challenging. Here you can use Jdbc service and Mail component provided in workbench to handle the AF data.
Views
Replies
Total Likes
Could you please let me know how to change form title and header text which appears on pdf while submitting form
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies