How do I pass a checkbox value to a Webform through URL? When I click a webform link, I want one of the checkbox checked. I've set already set up the default value for that checkbox as %get[foo] in Webform.

I tried:

a href="node/34?foo=checked" 

a href="node/34?foo=selected"

a href="node/34?foo=1"

a href="node/34?foo[]=1"

Am I missing something?
Webform provides this functionality by itself.


Define in your checkbox field a default value:

%get[customkey]





The url will be:

http://example.com/node/1?customkey=one,two