Home > other >  How can I intercept data being sent to a Googlesheet from Javascript programatically/implicitly?
How can I intercept data being sent to a Googlesheet from Javascript programatically/implicitly?

Time:04-09

I am making a Google appscript page

I realise Post and Get are not 'secure' but the data is not sensitive. I am a beginner with Javascript, so any help in resolving this issue would be much appreciated.

This is not the same as this question which asks how to listen to the submit button being clicked on a form. I want to 'listen' or act contingently upon the document.forms['mapData'].submit() line.

CodePudding user response:

document.forms['mapData'].dispatchEvent(new Event('submit'));

I got the answer from this question.

  • Related