Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The checkbox isn't working #35

Open
Fweddi opened this issue Aug 23, 2019 · 1 comment
Open

The checkbox isn't working #35

Fweddi opened this issue Aug 23, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@Fweddi
Copy link

Fweddi commented Aug 23, 2019

Even if I tick the checkbox, it will input a null value into the database.

@Fweddi Fweddi added the bug Something isn't working label Aug 23, 2019
@Fweddi
Copy link
Author

Fweddi commented Aug 23, 2019

I think you have tried to deconstruct an 'answer' variable from the incoming data in your postStatement query, but it is sending through a 'boolean' variable instead.

Do you want your checkbox to be true by default? If you do, you will also need to make sure that its 'checked' property is set to true (this will set what the checkbox looks like by default).

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant