selecting more then one item

pokemon 13 Sep, 2011
I have a table of people and a table of events. I want to be able to show one event (😀 ) and then choose some (more then one) of the people🤨 to invite for that event.

How can I do this? (I don't know how this is called. So, I can not look for it.)
GreyHead 15 Sep, 2011
Hi pokemon,

Normally you use either a select drop-down with 'multi' enabled or a check-box group. Both of those allow multiple selections.

Bob
pokemon 19 Sep, 2011
Is there somewhere an explanation of how to use a select drop-down with 'multi' enabled or a check-box group. I tried to make a drop-down but couldn't find how to enable multi. I also tried to make a check-box group,I really couldn't find out how to start.
(I like to use them with the contents of a database and fill the database too)
GreyHead 19 Sep, 2011
Hi pokemon,

There's a 'multi' checkbox in the CFv4 Wizard, in Cfv3 you'd need to add multiple='multiple' to the select tag in the Form HTML and make the name into an array name e.g. name='states[]'.

With multiple drop-downs it can help to set the size greater than 1 so that the multiple selections are more apparent to the user.

Bob
awoolbert 21 Oct, 2011
Bob,

I'm also having a problem with the multiple select drop down list saving to the database. I'm using version 4 and have tried putting [] in the names but to no success. Can you detail this out for version 4. I have created the tables and then put in the multiple select. If this is an issue, please let me know.

Thank you,
Allison
GreyHead 22 Oct, 2011
Hi Allison,

There's no problem saving to the database BUT you need to add a Handle Arrays action before the DB Save to convert the array to a string.

Bob

PS There is a bug with republishing multiple selects - there a fix linked from the ChronoForms CFv4 RC2.0 bugs post in the CFv4 forum.
awoolbert 25 Oct, 2011
Thank you SO MUCH. I was having a real problem figuring this out. Thanks again!
This topic is locked and no more replies can be posted.