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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

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

Avatar

Not applicable
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!
0 Replies