Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Populate text box from multi select listbox


Level 1


I'm creating a dynamic pdf form and would like a text box to be populated by the selections a user makes in a multi-select list box. Do I need script for this? If so, are you able to tell me what that script might be?

I appreciate any help you can provide.


2 Replies


Level 1

I tried this solution but nothing happened. Im not used to scripting but am open to trying.

Multi Selection Listbox-Textbox


Level 1

i also used this script but nothing happened:

var vList = ListBox1.rawValue.split("\n");

for (var i = 0; i < vList.length; i++)
     xfa.host.messageBox("Selected Values - " +  vList[i]);

I'm applying it to the list box to execute upon "click"... not sure if that makes sense?