Checkbox group data lost after server validation error

mokte 22 Oct, 2012
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

//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!
GreyHead 22 Oct, 2012
Hi mokte,

This was a bug but I thought that Max had fixed it in the latest release :-(

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