Page 1 of 5

how to select more than one from a select menu?

Posted: Sat Jul 27, 2013 1:36 am
by John Herdean

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?


how to select more than one from a select menu?

Posted: Sat Jul 27, 2013 2:01 am
by Igor

Hi,

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


how to select more than one from a select menu?

Posted: Sun Jul 28, 2013 4:46 pm
by John Herdean

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.


how to select more than one from a select menu?

Posted: Sun Jul 28, 2013 5:52 pm
by Alena Prykhodko

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.


how to select more than one from a select menu?

Posted: Wed Jul 31, 2013 1:21 am
by John Herdean

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


how to select more than one from a select menu?

Posted: Wed Jul 31, 2013 8:18 am
by Maryna Brodina

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


how to select more than one from a select menu?

Posted: Wed Jul 31, 2013 2:18 pm
by John Herdean

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?


how to select more than one from a select menu?

Posted: Wed Jul 31, 2013 2:27 pm
by John Herdean

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

Image


how to select more than one from a select menu?

Posted: Wed Jul 31, 2013 3:43 pm
by John Herdean

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?


how to select more than one from a select menu?

Posted: Wed Jul 31, 2013 3:44 pm
by John Herdean

outstanding issue 1