Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Bringing in XML Data into Form


Level 2

I have a simple XSD and XML file with some data that I want to bind and bring into my PDF form. I've created a Data Connection to the XSD, and then dragged the fields into my PDF from the Data View. When I open the PDF I don't get any data from my XML...it seems in order to being in the data I have to go to Forms -> Manage Form Data -> Import. Is there a way to have the PDF bring in the XML data automatically when it opens?

2 Replies


Level 10

If you are using the Designer tool,

         File -> Form Properties

                   Choose Preview Tab and and under Data File, choose the XML file with the data.

But if you expect the form to have been pre-populated with the data at runtime, the you need the server components render the form with the data file.

To render the form with the data, either you can create a process (OR) write code with APIs.




Level 2

OK I see. Would anyone have a scripting solution to update this Form property on open, say based on the value of

a Text field on the form. Or possibly user initiating a change by entering a value into a text field and clicking a button.?