learn-to-send-email-via-google-script-html-no-server
learn-to-send-email-via-google-script-html-no-server copied to clipboard
checkbox input always give "on" even when is off
The title may be confusing but even when the checkbox is off, the spreadsheet and the email says on. If I change the value to something like "yes", it will show yes even if the checkbox is off. The only way I was able to make it work is by using two radio inputs with the same name atributte but different values, but that isn't the way I was intending to do. This is probabily a dumb question, but I'm really new to html so I have no idea.
Hi, can you describe a simplified example of what you are trying to create? And if possible, share your current code (if you're not confortable sharing the content, use filler text).
I had the same issue as @cabralium, the script does not handle checkboxes correctly because "value" is not the right property, it should be sending "checked".
I just submitted a PR with a fix (a bit of a botch though..)