Expand my Community achievements bar.

SOLVED

AEM Forms Edit Toolbar - Store pdf in Submit actions

Avatar

Community Advisor

Hello All,

I am trying to use the "Store PDF" option available under

- Create adaptive form (test-form)

- Go to Classic UI

-On top, in front of "Start of an adaptive form", click "Edit"

- Click on "Submit actions" tab

-Select dropdown option "Store PDF" for Submit action

I see the Store Path as "/content/usergenerated/content/forms/af/test-form/*"

I activate the form and as a user click on 'Submit' button from Publish. I get the thank you message, but when I go to location /content/usergenerated/content/forms/af, I do not see any thing below that.

In logs I see this warning message, no error

*WARN* [0:0:0:0:0:0:0:1 [1500321294801] POST /content/forms/af/test-form/jcr:content/guideContainer.af.internalsubmit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.SubmitDataCollector templateKey not found in merge json:submissionMetaInfo

Does any one have idea what might be wrong or where to look for saved pdf if it is?

1 Accepted Solution

Avatar

Correct answer by
Level 7

Hi snbaem,

The Store PDF submit action is available as part of the AEM forms add-on package and applies only to XFA-based adaptive forms. In addition to storing the data on the node, the Store PDF submit action merges the form data with the XDP to generate and store a PDF at the configured store content path. If the form is configured to use Adobe Echosign for signing the PDF, the signed PDF is stored in the configured node as a child node.

For reference

https://helpx.adobe.com/aem-forms/6/submit-store-data-crx-repository.html

Thanks,

Techaspect Solutions.

View solution in original post

6 Replies

Avatar

Correct answer by
Level 7

Hi snbaem,

The Store PDF submit action is available as part of the AEM forms add-on package and applies only to XFA-based adaptive forms. In addition to storing the data on the node, the Store PDF submit action merges the form data with the XDP to generate and store a PDF at the configured store content path. If the form is configured to use Adobe Echosign for signing the PDF, the signed PDF is stored in the configured node as a child node.

For reference

https://helpx.adobe.com/aem-forms/6/submit-store-data-crx-repository.html

Thanks,

Techaspect Solutions.

Avatar

Community Advisor

@Techaspect Solutions

Thanks for the response. I have the add on package and was able to use the store pdf option. However was not aware that form needs to be XFA-based adaptive form. I checked briefly while replying here, do you have any idea how the XFA-based forms can be created within AEM/AEM  forms ?

Avatar

Level 7

Hi snbaem,

You can refer article[1] which tells how to create a adaptive-form with different form models.

[1] https://helpx.adobe.com/aem-forms/6/creating-adaptive-form.html#main-pars_header_0

You can also refer article[2] that helps in creating a adaptive forms with XFA.

[2] https://helpx.adobe.com/aem-forms/6/synchronizing-adaptive-forms-xfa.html

Hope this helps!

Thanks,

Techaspect Solutions.

Avatar

Community Advisor

Thanks for sharing the articles,

I looked into https://helpx.adobe.com/aem-forms/6/synchronizing-adaptive-forms-xfa.html.​ Here it seems there is a sample .XDP used to created  the adaptive form. How can that be generated?

If the forms are created in a tool such as Adobe Indesign, can we generate such XDP formats?

Same thing for article 1 ( https://helpx.adobe.com/aem-forms/6/creating-adaptive-form.html#main-pars_header_0), I don't see any way in Adobe indesign to get an XML that can be uploaded to AEM forms. I was able to get an export to xml of the pdf form but I see error as below

XML Schema Validation Failure

So the basic question for me stays, how can we integrate forms created in Adobe Indesign into AEM Forms, so that they can be edited from there on?

Avatar

Level 7

You need to create your XDP form templates in AEM Forms Designer application. You can't use InDesign to create them.

https://helpx.adobe.com/pdf/aem-forms/6-3/using-designer.pdf

Avatar

Community Advisor

Thanks DarrenBiz, I will explore the option. (Currently I am not sure whether we can adopt the option, unless Forms designer is the only way)