I have a problem repopulating a set of checkboxes after an unsuccessful form validation returns the user back to the same form. Dropdown menus and text inputs could be repopulat
I actually found that it only works if you use like this:
form_checkbox('ambience[]', 'value', set_checkbox('ambience[]', 'value'));
You need the square array brackets on the name for it to work properly.