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

how to get all values from multiselect dropdown in aem?


Level 4

hi , I am trying to access the selected values in AEM but only able to access the first value of the multiselect field

for e.g:

   var allRegionFields = document.querySelectorAll("coral-select.regionselect");// all multiselect fields i.e-3
         for(var i =0;i<allRegionFields.length;i++){
           console.log("validator call: ",allRegionFields[i].value); //it's returning only the 1st value selected in the multiselect
how can I get all values for the multiselect dropdown
6 Replies


Community Advisor

Hi @rahul234dabas 


It is suggested to access the dialog values in the java model and then pass them to HTL like this:


Hope this helps!



Kiran Vedantam


Community Advisor

Hi Rahul,


Where do you want to get the values, is it in the dialog or in the HTL?


Level 4

not in HTL but in the listener file I need to have the values that is the js file in extraClientLibs