This may apply to all checkboxes but I couldn't work out how to prepopulate specifically webform checkboxes. If I change the end of the module to:

else {
if ($form['#type'] == 'checkboxes') {
$form['#default_value'][] = $getslice;
} else {
$form['#default_value'] = $getslice;
}
}

Then I can do something like:
contact-us?edit[submitted][mycheckboxes]=checkbox

Comments

jbrauer’s picture

Version: 6.x-1.1 »
Status: Active » Needs work

all patches are now for 2.x. If there's interest in pursuing this please take a look and see if something similar will work for 2.x

scuba_fly’s picture

Version: » 6.x-2.x-dev
Issue summary: View changes
Status: Needs work » Closed (outdated)