I would like to know how I can get more than one checked checkbox value to be sent via mail.
I have a group of checkboxes and the user can check none, one or even all of them an I would like to get all the choices he made via mail.
Is this possible?
Hi eumelchen98,
Please drag a Handle Arrays action into the OnSubmit event and move it up before the Email action.
Bob
Hey Greyhead I did as you told me to but its not working. I also read the FAQ about handle arrays but there no more information than you gave to me.
I added some pictures of my form settings here so you can take a short look on what I did.
Hi eumelchen98,
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Bob
Hi eumelchen98,
I'm confused. In the image you posted I don't see an email action at all. On your site the form doesn't seem to exist - though there is a CFv4 form with the same name.
Bob
Hey Bob,
the original site is www.store4you24.de but I am testing Joomla 3 on a subdomain called update.store4you24.de
Here you can find the form beneath the menu link Proberaum > Anfrageformular Proberaum
The Mail itself works fine but I want the possibility to get all available values that could be checked in the checkbox group called 'Musikrichtung' to be sent via Mail. I only get the last checked value even if all values are checked...
If only one value is checked everything works fine... But what if the user marks two or three values???
Hi eumelchen98,
The Handle Arrays action should convert the array result from the CheckBox Group into a comma separated string that can add included in the Email.
Bob
You say 'should'.... But it doesn't.
Do I have to enter some specific values or stuff like that in the settings of the array action?
Or how do I have to set the html code for the mail? At the moment I do it like that: {Musikrichtung}
Where {Musikrichtung} is the name of the checkbox field and not of the array action
That is quite strange... I found the error now.
The original fieldname ends with []. I left that out as I changed the fieldname... Thats all. I just changed the fieldname into Musikrichtung[] and it works fine.
I have another strange problem with a label I used:
In my textbox labels I use some css style like this: <span class='form_required'>*</span>
That works fine exept the label of my captcha. There the css code changes when saving it into <span class="form_required">*</span> and is shown in the form.
Why is that?
Hi eumelchen98,
That would explain the problem. You need the [] on the end of the input name so that it returns an array of results. Without the [] just the last value will be returned.
Bob
I`m having the same problem, i'll did all that you said on this post but still not working.
listbrokersinc.com on link "Get a Free Quote"
Same here, however, the form is not sending any checked checkbox. None. Everything else is working like a charm, but still I receive all entered data except the choices made on the checkboxgroup...
Form can be found here:
http://www.netnietgenoeg.nl/new/index.php/steun-de-stichting/aanmeldformulier
Hi tasja71,
I don't see any form on that URL ?? The page has a whole bunch of 404 errors though :-(
Bob