Hi,
When I have multiple boxes checked in a checkbox group, everything works fine if it passes server side validation. But when it doesn't, the form is republished with all the boxes unchecked. Checkbox groups with only one box checked are republished OK though.
I'm using a temporary fix for now, could you please do a permanent fix? Thanks.
For my temp fix, I added a section in libraries/includes/data_republish.php right after the line
The section is
' || ' is the delimiter I set in Handle Arrays.
Thanks!
When I have multiple boxes checked in a checkbox group, everything works fine if it passes server side validation. But when it doesn't, the form is republished with all the boxes unchecked. Checkbox groups with only one box checked are republished OK though.
I'm using a temporary fix for now, could you please do a permanent fix? Thanks.
For my temp fix, I added a section in libraries/includes/data_republish.php right after the line
//multi values
The section is
if (!is_array($field_value)) {
if (strpos($field_value, ' || ')) { // hardcoded delimiter
$field_value = explode(' || ', $field_value);
}
}
' || ' is the delimiter I set in Handle Arrays.
Thanks!
This topic is locked and no more replies can be posted.