Expand my Community achievements bar.

Problem with the deleted instance of the subform in the generated XML

Avatar

Former Community Member

Hi

I have a dropdown and it has 3 values in it and I have 3 subforms(min count=0, max count=1).

Based on the selection of the dropdown

If value is 1, I am adding an instance of subform 1

If value is 2, I am adding an instance of subform 2 and deleting the instance of subform 1

and so on.

This functionality works fine.

The question is when i generate XML using "submit by email" button, the generated XML also contains the tags of the subforms which are not present in the form and got deleted. They appears as an empty tag in the xml which i do not want in that file if that subform instance got deleted.

Pls. Help

Thanks

Abhiram

1 Reply

Avatar

Level 10

Hi,

As you know the binding is set in the Object > Bindling palette. You can't change the binding using script at runtime, therefore if objects have a binding Name/Normal or Global, then they will participate in the XML data processing.

I don't think you can change this in LC Designer/Acrobat. You might be able to process the XML file once you have received it.

Good luck,

Niall