Form checkbox checked value not activating

Form checkbox checked value not activating

I am using a form whereby the value from the selected checkbox is added to a link to define a search across a site.

But it is not working.
When i manually add "checked" attribute, I am able to get the input value via alert but value returns as undefined when i try to run the form.