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.For example, after you select Vietnam from the first drop-down list, the items listed in the States/Provinces list show only the ones that apply to Vietnam.
•
•
1. For example, type Country.
Note: The binding you select should be a repeating data value or group so that the drop-down list or list box shows more than one item.
Note: For OLEDB data connections, the Items box is not available. Use the Item Text and Item Value boxes to select the database columns to use to populate the list.
6. For example, select @uiname to show United States.
7. (Optional) To save a different value than the Item Text label to the data source, click the triangle beside the Item Value box and select a binding.For example, select @token to save US to the data file.
8.
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. Removes any existing items in the second drop-down list. for (var nItemCount = 0; nItemCount < nItemsLength; nItemCount++) DropDownList2.addItem(oItems.nodes.item(nItemCount).value); 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
1. For example, type States/Provinces.For example, bind the state node to the States/Provinces drop-down list.
To dynamically populate a second field after populating the first