Forums

Drop down field in designer mode

NinaB 08 Mar, 2017
Hi Bob

I have a long list, for which I would like to use the drop down field. Is it possible to give the users the possibility to make more than one choice from the drop down?

Best regards

Nina Balslev
Max_admin 08 Mar, 2017
Answer
Hi Nina,

just enable the "multiple" setting in the dropdown field settings.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 08 Mar, 2017
Hi Nina,

. . .and change the drop-down name to an array name e.g, dropdown[]; and add a Handle Arrays action to the On Submit event to convert the array of choices to a comma separated list.

Bob
NinaB 09 Mar, 2017
Hi Bob

If I had just a tiny little bit of your knowledge then I might be able to do as you inform me. Anyhow I do not know where to change the drop-down to an array name. Neither do I know how to add a handle arrays action to an on-submit event?

I am sorry but it really seems complicated at my level of understanding 😢 The list that I have to make will end up being very long and therefore I will have to place the list in a drop-down field. Are you able to give me an explanation which a dummy like me could understand :?

Best regards

Nina Balslev
NinaB 11 Mar, 2017
Hi Bob

I enclose a screen print of my dropdown field and hope that you could give me some advices about how to get it to function? 🤣

Best regards

Nina Balslev
GreyHead 11 Mar, 2017
Hi Nina,

a. Change the Field name from dropdown15 to dropdown15[] - or better give it a name that relates to the content.

b. Remove the empty first line on the options box, If you want to show an 'empty' option please use the Empty Option box so set the text to be displayed.

c. In the form Setup tab drag a Handle Arrays action from the first actions group into the form On Submit event after any Check Captcha actions and before any DB Save or Email actions.

If the options list is long than you can use the Dynamic data settings to load it from a file or from a database table if that is useful

Bob
NinaB 13 Mar, 2017
Hi Bob

Thanks for your help.

Best regards

Nina Balslev
This topic is locked and no more replies can be posted.