Highlighted

Prefill service with attachments

Avatar

Avatar

Abhilash1289

Avatar

Abhilash1289

Abhilash1289

29-01-2020

I am working on requirement where I need to pre populate half of the sections with multiple fields and attachments in adaptive form other form data which has already submitted. Since the data model /XSD is similar for both of the forms I am thinking to capture data xml of previous submission and remove elements which are not present in new form.  I am able to populate data but facing issue with attachments. I am curious to know if there is any way to retrieve all attachments from previous submission with help of prefill service. Any suggestion to implement this would be really helpful and  highly appreciated.

Adaptive Forms AEM Forms Prefill Service

Replies

Highlighted

Avatar

Avatar

Mayank_Gandhi

Employee

Avatar

Mayank_Gandhi

Employee

Mayank_Gandhi
Employee

31-01-2020

Hi Abhilas,

 

Are you using restoreGuideState(options)?

Highlighted

Avatar

Avatar

Abhilash1289

Avatar

Abhilash1289

Abhilash1289

13-02-2020

Hi Mayank. I am constructing prefill xml to auto populate data on few sections of new form since we are saving data to various tables using custom submit action. I am not aware of restoreGuideState(options). Basically I want to see prefill service works like how AEM drafted application will render all data of saved application including attachments.