Expand my Community achievements bar.

Dynamically change the binding of a field

Avatar

Level 2

Hi,

I've been looking all over the internet for 2 days to find the answer to my question, but I couldn't get any information on my problem. Here's what i'm trying to do :

Based on a checkbox in my form, I want to export or I don't want to export a field to a XML document.

My checkbox is working properly and I got the Send button with the XML working too. I only need to find a way to dynamically change the binding property of my field. I've read some informations with the ".bind.match", but I can't seem to make it work.

I'm using Windows XP, LiveCycle Designer ES2 v.9.0 and I have to run the form in Reader 8.0.

Thanks alot for your help, it's greatly appreciated.

Jonathan

2 Replies

Avatar

Level 10

Hi,

the binding cannot be changed at runtime.

You can use the checkbox to delete the value of the field so the exported xml contains an empty tag.

Or you try to delete the data node of the desired field in the data DOM (xfa.datasets).

Avatar

Level 2

Thanks alot i'm gonna look if I can work it out with the xfa.datasets.