Prefill service with attachments | Community
Skip to main content
Abhilash1289
Level 2
Jan 29, 2020 11:16 AM UTC

Prefill service with attachments

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Pekket
Level 2
Apr 15, 2021 2:52 PM UTC

Ever found the answer to this problem?
I think i have the same case.
Prefilling some fields & attachments

Translate
Mayank_Gandhi
Employee
Jan 31, 2020 8:37 AM UTC

Hi Abhilas,

 

Are you using restoreGuideState(options)?

Translate
Abhilash1289
Level 2
Feb 13, 2020 6:50 PM UTC
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.
Translate
Employee
Sep 30, 2020 5:44 PM UTC