Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
GELÖST

Prepopulate Form File Attachment component

Avatar

Level 2

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. 

Themen

Anhand von Themen werden Community-Inhalte kategorisiert und Sie können so relevanten Inhalt besser finden.

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Employee

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

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten

Avatar

Employee

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

Avatar

Korrekte Antwort von
Employee

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