How to reference data from the data binding in Javascript?
Hello,
I have a specific question -
I have a PDF template that I am designing in Livecycle Designer ES2. The data binding is XML Schema. For one of the fields I need to bind the data with some formatting.
For example: If my XML (based on the schema) is as follows
.
.
.
<xml:element name="EffectiveDT" value="2011/01/29"/>
<xml:element name="ExpirationDT" value="2012/01/29"/>
.
.
I want to bind a text filed named "Term" on the PDF Template to have value as <EffectiveDT> - <ExpirationDT>
I couldn't figure out how to bind this in the Binding Tab for the Text Field so I thought may be I can have a JavaScript that can let me assigne the concatenated value to this TextField and I can leave the binding blank.
Is it possible? What would be a correct solution for such use case? If we can go JavaScript way, could anyone please share a code snippet on how to access the data binding element from JavaScript?
Thanks in advance!