These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Binding XSD to SubForms

TPegley
Registered: Jun 8 2009
Posts: 12

I have a form that contains subforms. The subforms contain textfields. I have a button to add new instances of the subform. All works well until I tried to bind the fields to an xsd schema. Now, when I enter some data in the textfields and press the button to add an instance a new subform is added but with the textfields pre-populated with the previors data.

What am I doing wrong? All help much appreciated.

My Product Information:
LiveCycle Designer, Windows
xrum
Registered: Feb 25 2009
Posts: 124
the binding is set to normal?
TPegley
Registered: Jun 8 2009
Posts: 12
The subforms work as expected when the binding is set to Normal. When I change them to be bound to the xsd they no longer work.
xrum
Registered: Feb 25 2009
Posts: 124
usually when i add the xsd and embed it to the form, my biding stays "Normal"

do you check the "Embed XML Schema" checkbox when creating a new xsd data connection?
TPegley
Registered: Jun 8 2009
Posts: 12
I decided to try a different approach. I started with a blank form and attached my xsd. From there I dragged the element representing the subform and it displayed as expected. I added a button to create a new instance and that also worked as expected. However the same problem persists as before... If I enter data into the first subform then press the button to create another, the new subform pre-populates the data fields from the first record.

This suggests it is not my binding that is wrong but the xsd itself. The element I am trying to repeat is Claimants. Can anyone see anything wrong with this please?

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