checkbox group results not showing in email (array?)

cjmicro 08 Oct, 2012
i have a checkbox group like this:
 <label>
                          <input type="checkbox" name="dates" value="N/T 3-D Wed. Oct. 24" id="dates_0">
                          N/T 3-D Wed. Oct. 24</label>
                        <br>
                        <label>
                          <input type="checkbox" name="dates" value="N/T 3-D Thur. Oct. 25" id="dates_1">
                          N/T 3-D Thur. Oct. 25</label>
                        <br>
                        <label>
                          <input type="checkbox" name="dates" value="N/T 3-D Fri. Oct. 26" id="dates_2">
                          N/T 3-D Fri. Oct. 26</label>
                        <br>
                        ...etc


My email template has {dates} in a table column by itself. But it only seems to show the last date even if all 4 are checked. It looks like the newer CF you have to add a handle array event, but i am using old version (joomla 1.5.26 and CF ver 3.2 because of the mootools upgrade)

Let CF handle posted arrays is checked "YES" on the general form config.

How can i get the values checked to ALL show in the email? Thanks for any help on this.
Cheryl
GreyHead 09 Oct, 2012
Hi Cheryl,

Checkbox groups need to use array names name='dates[]' or you will only get the last value set.

Bob
cjmicro 09 Oct, 2012
That was simple,thanks! Should have asked you before I spent an hour on it. 🙄

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