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.

PDF not posting XML data:

Avatar

Former Community Member

Issue: PDF not posting XML data:

We are trying to create an Adobe Form (XDP) which will generate a custom XML as shown below.

Step1: Create Schema and set data binding

image1.JPG

Step 2: Test using Sample Input XML

Using the sample Input XML (at Form Properties > Preview), the data from sample input XML is being populated properly as expected. (“Test” shows up in the rendered form as shown below).

image2.JPG

Step 3: Enter data and submit the Form

  1. Now, remove the sample/preview input XML from Form      Properties > Preview.
  2. Render/Preview the form and Enter some data (Eg:      “User entered Data”) on the FValue text field
  3. Submit/post the XML to an email-id
  4. The generated XML file does not contain the data entered on      the PDF in the Fvalue text field..
image3.JPG
3 Replies

Avatar

Former Community Member

Note sure what you are doing with the binding at the top of the screen but if you click on a field and open the Binding tab in the object palette

it will show you the binding that it is using.

My guess is that this binding is not set up correctly.

Paul

Avatar

Former Community Member

Thanks for the reply Paul,

The Binding seems to be ok as the data in the input XML shows up correctly after the binding is done.

Here is the input XML:

---------------

<?xml version="1.0" encoding="UTF-8"?>

<Forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >

<Form>

<FormId>MyForm</FormId>

<Fields>

<FName>Field1</FName>

<FValue>Test</FValue>

</Fields>

<Fields>

<FName>Field2</FName>

<FValue>Test2</FValue>

</Fields>

</Form>

<Form>

<FormId>MyOtherForm</FormId>

<Fields>

<FName>Fieldx</FName>

<FValue>Testx</FValue>

</Fields>

</Form>

</Forms>

-----------------
Steps to recreate:
a) Using the above XML and create a schema.
b) Use the schema as the data connection for an XDP file that has one Text field in it.

c) The data binding for the Text field given is: $.Form.(FormId.value=="MyForm").Fields.(FName.value=="Field1").FValue

d) Add a submit button that generates an output xml which gets attached in an email.

e) Use the XML given above as input preview datafile. - The data shows up in the Fvalue field as binding is ok, and clicking on submit also generates the output XML with proper data.

f) Remove the input xml - render the pdf , enter some data in the Textbox, and click on submit. The output xml generated doesn't have the data that was entered. 

Any advice or workaround suggestions would be cool.

Regards