Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

XML Drop-down to populate "Text Field" from same XML data

Avatar

06-10-2008

Okay folks, I got this to populate from a drop-down to a drop-down, but I want it to work from a drop-down selection to a text field.



Here is what I have (directly from the HELP menu in LiveCycle) and it works fine:



var tempString = "xfa.record." + this.boundItem(xfa.event.newText);

var oItems = xfa.resolveNode(tempString);

var nItemsLength = oItems.nodes.length;



DropDownList2.clearItems();



for (var nItemCount = 0; nItemCount < nItemsLength; nItemCount++) {

DropDownList2.addItem(oItems.nodes.item(nItemCount).value);

}



Now is there any way instead of populating a second drop-down filed I can have it populate a simple text field?



This would save me SOOOOO much work!