Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Prepopulate Form File Attachment component


Level 1

I have an adaptive form that contains a file attachment component. I wrote a custom service to save the attachments in an s3 and the form data in a mysql database. I am able to prepopulate the form with the exception of the file attachment component. 


Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies



Hello @jesus_ibarra , if you are handling this through a custom submission route instead of the form data model, you may find the following example helpful. In this sample, attachments are stored in memory, the data is modified with the file URL, and the form data is ultimately pre-filled using a unique visit ID.

  • CustomAFSubmitService: Link
  • CustomAFPrefillService: Link
  • FileAttachmentServlet: Link



I have written a tutorial on saving and prefilling forms with data and attachments in the Azure portal. This approach is only supported for forms based on Core Components

Let us know if you have any questions on this tutorial