Combobox Multiple Selection

Issues related to forms.
Post Reply
User avatar
Williams
 
 
Posts: 102
Joined: Fri Nov 23, 2018 12:22 am
Contact:

Combobox Multiple Selection

Post by Williams »

Hello everybody,

Actually i'm trying to create a form with Combo box with Multiple Selection. including (A,B and C). when i select " A Plus C". it only gives A..

Am i missing something!!!

Thank you.
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Combobox Multiple Selection

Post by Pablo »

This is from the help:
It's important to note that the element name must be in the form name[] for multiple selects! This way you'll receive the selected values in an array (this is a PHP feature).
User avatar
Williams
 
 
Posts: 102
Joined: Fri Nov 23, 2018 12:22 am
Contact:

Re: Combobox Multiple Selection

Post by Williams »

Do you mean to be [A] and [C] instead of A and C!!
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Combobox Multiple Selection

Post by Pablo »

I'm sorry, I do not know what you mean by [A] and [C].
I am referring to the name of the combo-box.

if this does not answer your question then please try to be more specific (include the URL of the page, your settings etc.)
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Combobox Multiple Selection

Post by BaconFries »

Did you include brackets in the combobox name? Also please see the Help for more information.
User avatar
Williams
 
 
Posts: 102
Joined: Fri Nov 23, 2018 12:22 am
Contact:

Re: Combobox Multiple Selection

Post by Williams »

Do you mean to re-name the compo box name! lets say my compo box named William. so i have to re-name it to [William].
Am i right!! If yes so i already did that. and Unfortunately that doesn't work with me.


Thank you BaconFries for your reply. My answer yes Based on Pablo response.
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Combobox Multiple Selection

Post by BaconFries »

lets say my compo box named William. so i have to re-name it to [William].
No, at this moment I am not at PC, and as it is New Year and have had one or two 🥃🥃🥃 try "William[ ]" without the quotes ....
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Combobox Multiple Selection

Post by Pablo »

Not [William], but William[]
User avatar
Williams
 
 
Posts: 102
Joined: Fri Nov 23, 2018 12:22 am
Contact:

Re: Combobox Multiple Selection

Post by Williams »

Pablo wrote: Tue Jan 01, 2019 9:34 am Not [William], but William[]
You're right Pablo. It works that way.
Hopefully you give an example in the Help file. i think that would be very useful.

Thank you alexmasss , BaconFries and Pablo as usual. you're the clue of this forum.. 8)

Happy New year All.
Dougie13
 
 
Posts: 5
Joined: Fri Feb 14, 2020 6:58 pm

Re: Combobox Multiple Selection

Post by Dougie13 »

Hi all,

Should the combobox multiple choices (array) work with the mysqlconnector ?

I am trying to get a simple multiple selection to be added to a mysql field (Blob, Json) to add a simple array of 2-3 names selected from list.

I have named the element testname[], and also tried the Object ID in the mysql connector as both testname[], and testname. However, can't seem to get it to work. Any pointers would be appreciated ?

D.
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Combobox Multiple Selection

Post by Pablo »

I'm sorry, currently data of multiple select comboboxes is not supported for MySQL.
This functionality is planned for future release.
Post Reply