Checkbox form help

Hello! I have a site https://li-hn.netlify.app/contact and have an issue with that checkbox.

When submitting the form, whether the user ticks that box or not doesn’t show up in the form section within Netlify.

This is what the checkbox had;
type="checkbox"
name="checkbox"
id="checkbox"

Hope this is enough information to help get this sorted!

Thanks

Hey @simonbeirouti! :wave:t2:
Welcome to The Community :slight_smile:

I checked out your site. The code you put in your initial message - the type, name, and id attributes - are applied to the label containing the input. Your input itself is

<input class="d-none" type="checkbox" id="check_1">

and since it doesn’t have a name attribute, it won’t be submitted in your form!

I hope that helps :slight_smile:


Jon