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

how to populate dropdown list and store item values with javascript


Level 3

data.dropdownSection = ["text1","text2","text3","text4","text5"];

This data is successfully populated to a dropdown list field with Javascript:




The user selects one item and save the form. Now I wish to export his selection with web service, while the values of the items instead of the text in this dropdown list is saved in the exported data.

If I'm using Livecycle, to list the texts, and then to "Specify Item Values" under binding tab of the dropdown list, I can easily get the Value instead of Text in exported data. But since the dropdown list comes from javascript, I don't know how to store the values into it.

Do you have any ideas? Thank you in advance.

0 Replies