Forums

mulitple select and refreshing

artd 10 Dec, 2008
Hello

I'm still in love with chronoforms. A little thing I mentioned yesterday in this form here

use case:
A guest is filling all the fields correctly and has choosen in the multiple selec box more than one option. He tries to send the formula but the captcha is wrong. He gets the message on top "Wrong Captcha" or something similar ...because the setting "try to republish" is selected, all the field are still with the typed in informations. ONLY:::: The multiple select box. Here is suddenly only one field selected instead of more than one... any idea why?

I guess that the visitors don't realize that...
thank your for your engine and your help
artd2
Max_admin 10 Dec, 2008
Hi artd2,

the name of this select box should include [] at the end, you don't have the [] there, try to add them and let me know!

regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
artd 14 Dec, 2008
Hello admin

With [] the refresh is ok. BUT he name of the field is given from an extern system ( Salesforce). The form send als the datas with curl to this system.
I saw now that also only the last option of the selected box is coming in this external system.
I guess there is no other way, isnt it?
Is there a documentation about the names of fields?

Greetings
artd2
GreyHead 14 Dec, 2008
Hi artd2,

There isn't any muliple select box on the page you linked to?

If you put [] in the field name then the $_POST array will include an array with all the values selected. Depending on what SalesForce needs you may need to implode the array into a string before your Curl.

If only the last entry is being received I suspect that you don't have the [] in the field name.

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