A few days ago, I posted about Designer 7.1′s new “Dynamic Properties”:http://blogs.adobe.com/formbuilder/2006/07/dynamic_properties.html feature. In that post, I explained how this feature could be used to automatically populate a list box or drop down list field with data from a data connection without having to write any script.
Today, I thought I would highlight one of the *main advantages* to using this feature: *localization* of your forms!
By using the Dynamic Properties feature to bind the caption of form fields to data nodes in a data connection, you can easily localize your forms *without having to write any script*!
To illustrate how this would work, I’ve designed a simple little form which has an address block on it (taken from the “Address Block” custom object that ships with Designer, found under the Custom tab in the Library palette). Each field in the address block (which excludes the “Locale” field at the top that’s just there for informational purposes) has its Caption property bound to a specific data node in the data connection I’ve defined, based on some different localized XML Data files. To localize the form at run-time (e.g. in Acrobat), just open the form and then load the XML Data file pertaining to the locale you want to use.
“Download Sample [zip]“:http://blogs.adobe.com/formbuilder/samples/DataBinding/AutoLocalizedForm.zip
*Minimum Requirements:* Designer 7.1, Acrobat Pro 7.0.5.
*Note:* If you open the form in Acrobat, don’t forget to load a data file into it by using the options under the “File | Form Data” menu.
I should also mention that since it’s possible to have multiple data connections pointing to databases and/or WSDL connections, you could use one connection to localize your form and another to capture the data entered into your form (by binding the field *values* as usual, using the Binding tab in the Object palette, to data nodes in the second data connection). If you have any questions about this, I’ll be glad to answer them!