Expand my Community achievements bar.

Adding Print functionality in a Adaptive Form AEM 6.2

Avatar

Level 1

Hi All - I was trying to add a print functionality to my Adaptive Form which should print the entire form when clicked, my form is in a tabbed layout and the print button i added just prints the first tab. Is there any other way to get this implemented ? please suggest.

Thanks,

Abhishek

3 Replies

Avatar

Level 8

You should round trip the AF data to create a document of record and print that instead.  Trying to print the HTML of an AF will provide you very inconsistent results and isn't a best practice.

Avatar

Employee Advisor

As Steve said , you can generate DoR and use that further for printing or save it for future reference. 

For 6.2 you may refer to https://helpx.adobe.com/aem-forms/6-2/generate-document-of-record-for-non-xfa-based-adaptive-forms.h...

Avatar

Employee

How did you add print functionality, I tried to add in rule editor but it is not working.

xfa.host.print(1, "0", "0", 0, 1, 0, 0, 0);