You can dynamically populate a second field after populating the first using scripting. For example, you can have one drop-down list that shows users a list of countries. After a user selects a country, the second list shows the states or provinces for that country.
   <country/>
   <countries>
      <item uiname=”United States” token=”US”/>
      <item uiname=”Vietnam” token=”SRV”/>
   </countries>
   <state/>
   <US>
      <item>California</item>
      <item>New York</item>
      <item>Texas</item>
   </US>
   <SRV>
      <item>An Giang</item>
      <item>Bac Giang</item>
      <item>Bac Kan</item>
   </SRV>
Livecycle dynamic populate second list To dynamically populate a second field after populating the first
Livecycle countries To dynamically populate a second field after populating the first
Note:
Livecycle binding icon on active label To dynamically populate a second field after populating the first
   DropDownList2.addItem(oItems.nodes.item(nItemCount).value);
}
Specifies the string for xfa.record. For example, if United States is selected, xfa.record becomes xfa.record.US.
A list object method that translates from the user-friendly name to the value or token string. For example, when United States is selected, US is submitted.
Returns the new text content of the list Change event. For example, when United States is selected, United States is submitted.
Queries the number of child elements of <US> (or <SRV>), that is the number of <item> children.
for (var nItemCount = 0; nItemCount < nItemsLength; nItemCount++)
Gets the text value of the <item> child indicated by the nItemCount index and adds that value as a new item to the second drop-down list
For example, type States/Provinces.

To dynamically populate a second field after populating the first