1.
In the LiveCycle Workbench ES Resources view, open the countryScript.xdp file.
Notice that the fragment is a child of Variables in the Hierarchy palette. Fragments cannot contain scripts that are associated with other form objects, such as event scripts like validate, calculate, or initialize.
Livecycle countryscript editor To view the script in the countryScript fragment
The countryScript fragment is referenced by the drpDeliverToCountry and drpDeliverToStatePrv Drop-down list objects in the OrderedByAddress and DeliverToAddress fragments in the sample forms.
4.
In the LiveCycle Workbench ES Resources view, open the DeliverToAddress.xdp file.
5.
Select the drpDeliverToCountry Drop-down list object in the Hierarchy palette and view the script in the Script Editor. Notice how the countryScript fragment is referenced in the Script Editor.
Livecycle drpdelivertocountry script To view the script in the countryScript fragment

To view the script in the countryScript fragment