This topic is locked

Drop Down Box - Select Multiple Items

11/20/2007 10:48:31 AM
PHPRunner General questions
W
wengen author

Hello,
I searched the forums for this & could not find an answer to this:
On the Advanced Search page is there a way to code in the ability to select multiple drop down items at once (so the user can use Ctrl to select more than one selection).
Thanks

J
Jane 11/21/2007

Gary,
to setup field as multiple dropdown box proceed to the "Edit as" settings dialog on the Visual Editor tab, select Llokup wizard and change Miltiline rows option.

W
wengen author 11/21/2007

Gary,

to setup field as multiple dropdown box proceed to the "Edit as" settings dialog on the Visual Editor tab, select Llokup wizard and change Miltiline rows option.


Thanks! - That solved it

W
wengen author 11/23/2007

It works (lets us select multiple items using Ctrl), but now the dropdown feature is gone. Instead, we now have a window containing a list of the items. How do we get the dropdown feature back, while at the same time, have the ability to select multiple items using Ctrl?
Thanks

Alexey admin 11/26/2007

Hi,
this behaviour is by design.

Browsers display multiselect controls as a list instead of a dropdown.

I'm afraid there is nothing you can do here.

W
wengen author 11/26/2007

Alexey thanks -

D
Dale 11/26/2007

I have successfully solved the issue by a little javascript.
Unfortunately I am using version 3.0 and not the latest version, so its only half an answer.

Anyway I just used a piece of javascript to change the size of the multiselect field to size = 1 on the edit and add templates.
<script language="javascript" type="text/javascript">

document.getElementById('value1[]').size = 1;

</script>
This way on my search pages I see the multiselect as setup in phprunner, yet on the Add and Edit pages the multiselect is formatted to size = 1 by the javascript and poof done. And still you can select more than one option, although you can only see one at a time in the field on the add or edit page.
Perhaps the support team can show you where the snippet would need to be applied, and reference the form name instead of element id.
Just thought I would let you know it is indeed possible.