Learn-to-send-email-via-google-script-html-no-server: I get 2 emails in a row with the same content

Created on 19 Jul 2018  路  10Comments  路  Source: dwyl/learn-to-send-email-via-google-script-html-no-server

Is there anything that i should edit on the code or it normally sends twice sir?
image

Most helpful comment

Ok nevermind. Looks like my form_submission_handler.js was duplicating in application.js.
Found a quick fix but maybe it has something to do with how I structured my files
Thanks for being there sean !

All 10 comments

Thought we disabled the button to avoid accidental presses after you submitted once. Anyways debug what's happening on the client to figure what data you are sending and when.

this shouldn't be happening normally, but feel free to post a demo or steps to reproduce the issue otherwise. feel free to let us know if you figured anything out @kaylecabildo or if anyone else is having this issue we can revisit it. thanks!

Hi !
I'm having the same issue.
2 new rows on the spreadsheet, 2 new emails.
Have you solved it @kaylecabildo ?

Is the button to submit the form clickable twice really fast? That's the only way I know how to possibly reproduce this.

Thanks for your answer @mckennapsean
I don't think so, cause when I simulate one click in JS in the console, it's still one trigger but twice the data
For info in my application.js I just have a script for scrolling numbers.

capture d ecran 2019-02-14 a 15 21 29

Ok nevermind. Looks like my form_submission_handler.js was duplicating in application.js.
Found a quick fix but maybe it has something to do with how I structured my files
Thanks for being there sean !

That's good to hear it was a simple fix! Nice find.

I am having the same issue.
@TJViser Could you elaborate on how you fixed it? Thanks a lot

I'd suggest putting some breakpoints in your browser's debugger to see if the form is getting submitted twice. The OP stated that this was their issue. Perhaps it's just getting loaded twice for the form.

Hi @Guillaume-slize,

I don't remember very well, but I was somehow calling the script twice with script links I guess, so maybe look for a redondance
If you want me to have a look at your code, don't hesitate.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

onurusluca picture onurusluca  路  4Comments

shaily99 picture shaily99  路  4Comments

EugeneFitzher picture EugeneFitzher  路  4Comments

vlknlvnt picture vlknlvnt  路  4Comments

Brothman picture Brothman  路  3Comments