Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Selected value from a Drop-Down list

Avatar

Level 2

I am having a hard time figuring out how to get the selcted value from a Drop Down List in the change event.  I am trying to set the number of rows to the number selected in the Drop-Down List.

I have tried:

form1.#subform[0].DropDownList1::change - (JavaScript, client)

Table1.Row1.instanceManager.setInstances(DropDownList1.rawValue);

Can anybody see what I am doing wrong.

1 Reply

Avatar

Level 9

Hi,

If you want to capture the selected value in the change event of the dropdown list, then in the change event you can put the script

var a = xfa.event.newText. In the exit event you can use the rawValue, but during the change event you have to use xfa.event.newText .

Thanks,

Bibhu.