Forums

Multi-Select Dropdown

diabolka 09 Jul, 2015
I am attempting to do a multi-select drop down. The form shows the dropdown but it will not let me select anything at all. The code:


<div class="ccms_form_element cfdiv_checkboxgroup" id="acor__container_div" style=""><label for="acor[]">ACOR Courses</label><select multiple="multiple" size="1" id="acor[]" class=" validate['required']" title="acor[]" name="acor[]">
<option value="">-- Please Select --</option>
<option value="ENGL 104">ENGL 104: Intro to Literature</option>
<option value="GEOG 201">GEOG 201: World Geography</option>
<option value="HIST 104">HIST 104: Western Civilization</option>
<option value="HIST 251">HIST 251: Black Cinema</option>
<option value="MATH 107">MATH 107: College Algebra</option>
<option value="MATH 109">MATH 109: Math for Teachers I</option>
<option value="MATH 110">MATH 110: Math for Teachers II</option>
<option value="PSYC 123">PSYC 123: Lifespan Psychology</option>
</select>


However, when you launch the form, it looks like greyed out textbox. Please advise!
diabolka 09 Jul, 2015
In your DB Record Loader action go to the Advanced tab.
Add the name of the column you are storing the data in to the Array Field Sets property.
Add the delimiter for the array to Array Separators property - usually a comma.


Does this go under any other event?
diabolka 09 Jul, 2015
I am not pulling the options from a database so this isn't the right way to go.
GreyHead 09 Jul, 2015
Answer
Hi diabolka,

Please change the size so that it is more than 1 - around 5 should be good, more if you like.

Bob
diabolka 09 Jul, 2015
Thank you!. That was a simple solution!!
This topic is locked and no more replies can be posted.