Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

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?