You want to create a localized PDF form but localization features in Adobe LiveCycle Designer only concern amounts or dates, and data binding in the Binding tab only concerns Text Fields values and not their captions.
Edit the XML source of the PDF form, add a <setProperty> tag to add data binding for the caption and add XML nodes to your data source for the captions.
In
Adobe LiveCycle Designer, open your PDF form.
Select the
Text Field you would like to localize.
Select
View > XML Source or click on the XML Source tab if it's already there.
Add a
<setProperty> tag in the XML Source just before the </field> tag for the selected Text Field.
Set the target attribute to
"caption.value.#text" and the ref attribute to
"$record.XMLNodeNameForCaption".
E.g, for the Vendor Name Text Field in our example:
<setProperty target="caption.value.#text" ref="$record.VendorNameCaption"/>
In our case, the XMLNodeNameForCaption is VendorNameCaption.
<field name="vendorName" y="23.594mm" w="83.759mm" h="4.766mm" access="readOnly">
<ui>
<textEdit>
<border>
<edge presence="hidden"/>
</border>
<margin/>
</textEdit>
</ui>
<font typeface="Myriad Pro" size="9pt"/>
<margin bottomInset="0mm" leftInset="0mm" rightInset="0mm" topInset="0mm"/>
<para marginLeft="0pt" vAlign="middle"/>
<caption reserve="27.1666mm">
<font typeface="Myriad Pro" baselineShift="0pt" size="8pt"/>
<para marginLeft="0pt" marginRight="0pt" spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" vAlign="middle"/>
<value>
<text>Vendor:</text>
</value>
</caption>
<border>
<corner presence="hidden"/>
<corner/>
<corner/>
<corner/>
<edge presence="hidden"/>
</border>
<bind match="global"/>
<setProperty target="caption.value.#text" ref="$record.VendorNameCaption"/>
</field>
Click on the Design View tab.
Adobe Livecycle Designer prompts you to save your changes. Click Yes.
Notice that the Field tab under the Object tab in the Inspector now as a green Caption link.
If you click on it, a dialog box appears, showing you the data binding for the caption.
NB: If you want a simple Text to be localized, convert it to a Text Field in the Object > Field tab by changing its type.
In Flex, be sure the XML model you send to the PDF Remote Object has the corresponding node for the caption (in our example, VendorNameCaption ):
<mx:XML id="xmlModel">
<transaction>
<VendorNameValue>{this.vendorNameValue}</VendorNameValue>
<VendorNameCaption>{this.vendorNameCaption}</VendorNameCaption>
</transaction>
</mx:XML>
Thanks to Pankaj Ruwali from Adobe Support for his help on this.