I have a checkbox group on my form. when i have multiple choices, it only returns the last choice. I have added [] to the field name, and a handle arrays to the on submit, but it's still not working...
Hi dreamdest,
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Note: if you are using the Easy Wizard you can turn on Debug on the Others tab in CFv4 or the Setup tab in CFv5.
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.
Note: if you are using the Easy Wizard you can turn on Debug on the Others tab in CFv4 or the Setup tab in CFv5.
Bob
Found it:
Debug Info
Array
(
)
Snippet of email:
What would you like to spend some of your time doing? Attractions
There were 3 items selected; Attractions was the last one.
Debug Info
Array
(
)
Snippet of email:
What would you like to spend some of your time doing? Attractions
There were 3 items selected; Attractions was the last one.
HI dreamdest,
Please post the whole of the Debugger output here.
Thanks
Bob
Please post the whole of the Debugger output here.
Thanks
Bob
The form is at: http://dreamdestinations.travel/index.php?option=com_chronoforms5&chronoform=Questionnaire
Debug:
Debug:
Data Array
Array
(
[option] => com_chronoforms5
[chronoform] => Questionnaire
[event] => submit
[radio1] => 0
[name1] => Jane Bride
[Age1] => 26
[cell1] => 917-555-1234
[radio2] => 1
[name2] => John Groom
[age2] => 28
[cell2] => 917-555-3333
[email] => email@email.com
[wedding_date] => 11/29/2014
[travel_dates] => 12/1/2014 - 12/10/2014
[departure_airport] => mia
[preferred_area] => aruba - no hurricanes
[other_destinations] =>
[budget] => 10000
[must_haves] => adults only
[interests] => Attractions
[night_activities] => See Shows
[registry_interest] => 0
[button44] => Submit
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
)
The checkboxes name is set to "interests" without brackets [], and this is why you get the last value only!
Hi DreamDest,
As you can see Interests isn't showing up as an array.
And, looking at the form HTML, the name doesn't have the [] see for example
Bob
As you can see Interests isn't showing up as an array.
And, looking at the form HTML, the name doesn't have the [] see for example
<input name="interests" id="interests22" class="A" title="" style="" data-load-state="" data-tooltip="" type="checkbox" value="Adventure">
Bob
I am posting the designer and the edit element captures - you can see that it DOES have the array..... :?
This is weird, and you don't have 2 forms with the same name ?
Do you have the latest update ? if yes then please take a form backup and send it either here or by the "Contact us" page.
Regards,
Max
Do you have the latest update ? if yes then please take a form backup and send it either here or by the "Contact us" page.
Regards,
Max
One other thing - I created a 'test' form with just one checkbox group question, and it works fine.:http://dreamdestinations.travel/index.php?option=com_chronoforms5&chronoform=test
The form where I have problems with the array, I am also having problems with fields that are 'required' - they are not displaying the asterisk, and you can submit the form with them being empty. This is my third form, so I somewhat know what I'm doing... is it possible for a form to get 'corrupted' ??
The form where I have problems with the array, I am also having problems with fields that are 'required' - they are not displaying the asterisk, and you can submit the form with them being empty. This is my third form, so I somewhat know what I'm doing... is it possible for a form to get 'corrupted' ??
No, the form can't get corrupted, do you have the site cache ON ? please try testing with the cache disabled.
Site Cache is off. Only one form with that name. I downloaded Chronoforms 3 weeks ago, so I'm guessing it's the latest version
When you look at the form, can you also see why the first 4 fields are required, but are not showing asterisks, and are being allowed to submit empty as well? Thanks again!
The link doesn't work, could you please attach the file here or send it using the "Contact us" page ?
Got it!
Ok, under the "Code" tab you have set the form type to "Custom code", that will use the code in the box and will ignore any changes in the "Designer" section, please change that and save the form then try again!
This topic is locked and no more replies can be posted.