How do I select all items in a list box.
The box is being populated by other buttons. Then when i save the form and collect responses it only takes the item that is selected. So I need to have ALL selected by defualt.
Solved! Go to Solution.
Views
Replies
Total Likes
I am assuming that when you select the items in the ListBox by hand they are showing up onn the data file right?
Here is an example that shows how I did it....unless I am misunderstanding what it is you are looking for.
Paul
Views
Replies
Total Likes
Did you configure the listbox to be a multi-select listbox?
Paul
Views
Replies
Total Likes
Yes. I did. I can get it to work if I manual click and shift click the list, but I want it done automatically. Is there a way to have a button perform the select all? I have a button that adds items from several drop down menus to the box, I could just add it on the end of that one.
Benjamin Speich
Mobile: 312-504-8820
1-877-MENTICE
Views
Replies
Total Likes
Yes. I did. I can get it to work if I manual click and shift click the list, but I want it done automatically. Is there a way to have a button perform the select all? I have a button that adds items from several drop down menus to the box, I could just add it on the end of that one.
Views
Replies
Total Likes
You woudl have to pass all of the values you want to set in a single call. For example:
ListBox1.rawValue = "One\nTwo\nThree";
The \n is a newline designation in Javascript and is used as the selection separator.
Paul
Views
Replies
Total Likes
Can you specify what "one" "two" three" are? Would they be specific to my form?
Views
Replies
Total Likes
Well i played with it a little more. Maybe i am not explaining correctly.
My listbox is already being populated by other events. The user never has to actually select anything in the listbox. When i get the form back and export the data to a CSV file nothing from the listbox is being copied because nothing is selected. So i have to reopen the file select all and then save and then export again. But i have like 50-100 of these forms. So is there a way that when the user adds things to this box they are automaticallly selected? As if someone went in and manually selected them all? Or do i just have to live with selecting them manually?
Views
Replies
Total Likes
I am assuming that when you select the items in the ListBox by hand they are showing up onn the data file right?
Here is an example that shows how I did it....unless I am misunderstanding what it is you are looking for.
Paul
Views
Replies
Total Likes
Perfect. The select all loop is what was looking for. I just wanted them to all be selected by default (almost). So this works. Now if it is wrong its because the user did something stupid. HAHAHAHA
And yes they all show up now when I run the report.
Views
Replies
Total Likes
Hi Paul,
I have the same problem.
Could I have a look at the pdf please?
Thanks,
Larissa
Views
Replies
Total Likes
Hi Larissa,
Paul's sample is in the post just above yours, here: Re: ListBox Select All.
If you right-click on it you can download and then open in LC Designer from your computer.
Niall
Views
Replies
Total Likes
Hi Niall,
I tried to have a look at it but keep getting an error message.
Forbidden
You don't have permission to access /servlet/JiveServlet/download/2462689-31193/ListBox_Programmatic.pdf on this server.
I am surprised that you can open it.
Cheers,
Larissa
Views
Replies
Total Likes
Hi Larissa,
Hadn't tried, but managed to download file.
I have loaded it up onto Acrobat.com, but it is Paul's solutions ;-)
Here it is: https://acrobat.com/#d=GG6uiQm5GR7LbadqxwCE5w
Niall
Views
Replies
Total Likes
Hey guys,
i am trying to apply this example into my form, but it doesnt work for some reason.
the example works fine when I open it in my LCD, but even when I open a new page and place it there, it doesnt work.
Do you have any idea what the reason could be??
Thanks you!
Diana
Views
Replies
Total Likes
Views
Likes
Replies