learn-to-send-email-via-google-script-html-no-server icon indicating copy to clipboard operation
learn-to-send-email-via-google-script-html-no-server copied to clipboard

checkbox input always give "on" even when is off

Open cabralium opened this issue 1 year ago • 2 comments

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.

cabralium avatar Jun 13 '24 19:06 cabralium

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).

cristianofromagio avatar Jun 14 '24 15:06 cristianofromagio

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..)

ondono avatar Feb 11 '25 09:02 ondono