hello, I have a checkboxgroup with multiple positions. The checkboxgroup is called 'offer' and in the email template I have written {offer}. With multiple marking, however, it only shows the last selected position in the email. How can I easily display all marked ones? Thanks and regards
Hi PeekPoke,
To save multiple values your Checkbox group needs to have an array name e.g. offer[]
Bob
To save multiple values your Checkbox group needs to have an array name e.g. offer[]
Bob
Hello Bob
I have now search in the forum for handling with arrays.. do not understand how I have to apply it. Is there a guideline for v5 how to do this, so that all selected checkboxes are displayed in the mail?
there must be an easy way to do that .. I do not see him (yet) .. thanks for your help Bob.
René
PS. I do not speak English, I try, but google must help. ;-)
I have now search in the forum for handling with arrays.. do not understand how I have to apply it. Is there a guideline for v5 how to do this, so that all selected checkboxes are displayed in the mail?
there must be an easy way to do that .. I do not see him (yet) .. thanks for your help Bob.
René
PS. I do not speak English, I try, but google must help. ;-)
Hi PeekPoke
You need to add a Handle Arrays action in the form On Submit event before any Email or DB Save actions.
Bob
You need to add a Handle Arrays action in the form On Submit event before any Email or DB Save actions.
Bob
I inserted the "Handle Arrays" (PrintScreen), but in the email I still see only the last marked position.What am I doing (still) wrong?Greetings, René

Hi PeekPoke,
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
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 Bob, thank you for your patience.
Data Array
Liebe(r) Donald Duck
Herzlichen Dank für Ihre Anfrage und Ihr Vertrauen.
Es freut mich das ich Ihr Interesse wecken konnte und wir uns bald persönlich kennen lernen.
Ich werde mich in Kürze bei Ihnen melden.
Meine Kontaktdaten:
+41(0)79 856 85 32 Mobile
info@renerebmann.com
Folgend Ihre gesandten Daten zur Bestätigung:
Thema:Akasha-Chronik Lesung
Vorname, Name:Donald Duck
Adresse:Entenhausen
Telefon:333
Erreichbarkeit:Jeden Abend ab 18:00 Uhr
E-Mail:baer@renerebmann.com
Bemerkung:Das ist ein TEST!
Alles Liebe in Ihren Augenblick
René RebmannAufräum- und Inspirations-CoachDipl. Feng Shui Berater FSSAkasha-Chronik Medium
Kapellgasse 12, CH-6004 Luzern LU
www.ReneRebmann.com
Reichhaltige RäumeEntfalten Sie Ihren persönlichen Kraftort
Data Array
Array ( [chronoform] => Anfrage [event] => submit [angebot] => Akasha-Chronik Lesung [name] => Donald Duck [adresse] => Entenhausen [telefon] => 333 [erreichbarkeit] => Jeden Abend ab 18:00 Uhr [email] => baer@renerebmann.com [bemerkung] => Das ist ein TEST! [g-recaptcha-response] => 03AEMEkEl6xKBXAZWB6FuHix7AZLFHRRy-wrtYzVYfqL8OeWfKqU263H9sOSgyebp5NGHmECWg9jygG8hwJ9DZSaQrRgiu8ykDvj0vlifBC92T2f4OH_JioxdGuSOP0sr8YtyPzmJZNuXxEJkdqzv6oCVnzV1XLRbjJtBUZ1WfChXJbKFZz3KCEGZw0NxgBOX2rvEV31fwirajhy0GJFuyhF8b7rdu8U0Zb3aiYksbEvsMVShzxgfu6aRRtzPdYTmV1yUKdruV7vD0VEYMlrICIo-74M9MhulBhd33ZLEKDq-Sbh0kwZAMxYc [senden] => Senden [Anfrage] => [ip_address] => 178.197.232.120 )
Array ( )Errors
Array ( )Debug Info
Array ( [1] => Array ( [Email] => Array ( [0] => An email with the details below was sent successfully: [1] => To:baer@renerebmann.com, info@renerebmann.com [2] => Subject:Anfrage | René Rebmann, Reichhaltige Räume [3] => From name:René Rebmann, Reichhaltige Räume [4] => From email:info@renerebmann.com [5] => CC: [6] => BCC: [7] => Reply name: [8] => Reply email: [9] => Attachments: [10] => Array ( ) [11] => Body: <p>Liebe(r) Donald Duck</p> <p><strong>Herzlichen Dank für Ihre Anfrage und Ihr Vertrauen.</strong></p> <p>Es freut mich das ich Ihr Interesse wecken konnte und wir uns bald persönlich kennen lernen.</p> <p><strong>Ich werde mich in Kürze bei Ihnen melden.</strong></p> <p><strong>Meine Kontaktdaten:</strong></p> <p>+41(0)79 856 85 32 Mobile</p> <p>info@renerebmann.com</p> <p> </p> <p><strong>Folgend Ihre gesandten Daten zur Bestätigung:</strong></p> <table> <tr><td>Thema:</td><td>Akasha-Chronik Lesung</td></tr> <tr><td>Vorname, Name:</td><td>Donald Duck</td></tr> <tr><td>Adresse:</td><td>Entenhausen</td></tr> <tr><td>Telefon:</td><td>333</td></tr> <tr><td>Erreichbarkeit:</td><td>Jeden Abend ab 18:00 Uhr</td></tr> <tr><td>E-Mail:</td><td>baer@renerebmann.com</td></tr> <tr><td>Bemerkung:</td><td>Das ist ein TEST!</td></tr> </table> <p> </p> <p>Alles Liebe in Ihren Augenblick</p> <p><strong>René Rebmann</strong><br />Aufräum- und Inspirations-Coach<br />Dipl. Feng Shui Berater FSS<br />Akasha-Chronik Medium</p> <p> </p> <p>Kapellgasse 12, CH-6004 Luzern LU</p> <p><a href="http://www.renerebmann.com/">www.ReneRebmann.com</a></p> <p><strong>Reichhaltige Räume</strong><br />Entfalten Sie Ihren persönlichen Kraftort</p><br /><br />IP: 178.197.232.120 ) ) )And the E-Mail-Text:
Liebe(r) Donald Duck
Herzlichen Dank für Ihre Anfrage und Ihr Vertrauen.
Es freut mich das ich Ihr Interesse wecken konnte und wir uns bald persönlich kennen lernen.
Ich werde mich in Kürze bei Ihnen melden.
Meine Kontaktdaten:
+41(0)79 856 85 32 Mobile
info@renerebmann.com
Folgend Ihre gesandten Daten zur Bestätigung:
Thema:Akasha-Chronik Lesung
Vorname, Name:Donald Duck
Adresse:Entenhausen
Telefon:333
Erreichbarkeit:Jeden Abend ab 18:00 Uhr
E-Mail:baer@renerebmann.com
Bemerkung:Das ist ein TEST!
Alles Liebe in Ihren Augenblick
René RebmannAufräum- und Inspirations-CoachDipl. Feng Shui Berater FSSAkasha-Chronik Medium
Kapellgasse 12, CH-6004 Luzern LU
www.ReneRebmann.com
Reichhaltige RäumeEntfalten Sie Ihren persönlichen Kraftort
Hi PeekPoke,
The checkbox group needs to have an array name ending in two square brackets. At present it is angebot - see the form HTML:
Bob
The checkbox group needs to have an array name ending in two square brackets. At present it is angebot - see the form HTML:
<div class="gcore-checkbox-item" id="fitem">Please change that to
<input name="angebot" id="angebot" class=" validate['group:10'[li]" title="" style="" data-load-state="" data-tooltip="" type="checkbox" value="Allgemeine Anfrage">
<label class="gcore-label" for="angebot">Allgemeine Anfrage</label>
</div>[/li]
angebot[]
Bob
Thank you Bob for your help and patience.
It works fine now, of course!;-)
The name of the field is now "angebot[]", the action "Handle Arrays" is set in "on submit" and the email template says "{angebot}".
Thanks for this absolutely great and from my point of view BEST form-extension for Joomla !!!
Best regards, René
It works fine now, of course!;-)
The name of the field is now "angebot[]", the action "Handle Arrays" is set in "on submit" and the email template says "{angebot}".
Thanks for this absolutely great and from my point of view BEST form-extension for Joomla !!!
Best regards, René
This topic is locked and no more replies can be posted.