distributev / gmail-wordpress-mailchimp-integration

Build a Gmail contextual gadget similar (but much simpler) to - https://solve360.com/new/solve360-and-gmail-hook-up/
MIT License
0 stars 0 forks source link

&sendemail=1 passed always to Gadget Helper.gs (when pressing save Event) #14

Open distributev opened 8 years ago

distributev commented 8 years ago

No matter if the Send Email checkbox is selected or not

&sendemail=1

it's always passed.

The correct value should be passed depending if the checkbox is selected or not.

mdkass commented 8 years ago

I think you are using an old version, Version 58 uploaded 10 days ago has this lines: var se = document.getElementById('sendEmail').value; if (se){var sendEmail = 1}else{var sendEmail =0} var url = "https://script.google.com/macros/s/AKfycbzdkgpfWPrBUNWd8oe9uFg1KCjSBQjCcLuiCEx6Fcb3MuY2Nko/exec?"; url = url + "req=event&email="+email+"&etype="+typ+"&desc="+ds+"&notes="+nt+"&edate="+dt+"&sendEmail="+sendEmail;

distributev commented 8 years ago

I'll double-check this.