John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to select more than one from a select menu?

Hi, I would like to know if theres an easy way to get the SelectMenu to allow the user to select as many of the options listed instead of just one?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

how to select more than one from a select menu?

Hi,

To do this you can add multiple=multiple to "More Properties" dialog on "select" element.
Image

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to select more than one from a select menu?

ok, so if i want to run a JS once the done button is clicked, what is the code to trigger that button?

For example, after the user completes his selections, i want to show 'mobilelist_12'

Thanks.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

how to select more than one from a select menu?

Please look here http://stackoverflow.com/questions/45...
Basically this sort of questions is out of scope of our support, you can code it yourself or search online.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to select more than one from a select menu?

Hi again, ok so when the user selects multiple items theres a small circle with the # of items selected. How can I retreive that value? For example lets put it in a localStorageItem called 'selectnumber' once the user finished with his selections? WHat is the JS api for such? Thanks

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

how to select more than one from a select menu?

Hi, you can use codeAppery("mobileselectmenuName").val()/code
in case if you have multiple selection this method returns array with all selected values.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to select more than one from a select menu?

Im not talking about the array value, Im talking about the number of items selected. Theres a small circle with the # of items selected once the user finishes his/her selections. I need to retrieve that integer value?

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to select more than one from a select menu?

this is the # I need to retrieve, what is the API to do that?

Image

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to select more than one from a select menu?

And now I have another problem. I cant seem to set the value of a localStorage into the selected menu. This is what i tried on Load:

Image

At this stage I have several items in my local storage and I want to have the select menu check off the ones in local storage on page Load, but that action wont do it. What is the proper way to inject a # of items into it?

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to select more than one from a select menu?

outstanding issue 1

Return to “Issues”