Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Script event undefined

I've built a Google Script which runs when my Spreadsheet is edited:

function onEdit(event)
{
  Browser.msgBox(event.source);
  general(event);
}

When my function is named onEdit(), the Browser.msgBox returns "Spreadsheet" (so the source is defined) When my function is named othername(), the Browser.msgBox retunrs "undefined".

I execute the script with the same user, the script runs when my Spreadsheet is edited and i don't change anything else than the name of the function.

Thanks.

like image 914
user1749392 Avatar asked Aug 10 '26 21:08

user1749392


1 Answers

onEdit is an event in Google Script, so changing it's name will generate different behavior. Hope this helps!

like image 146
Radu Bompa Avatar answered Aug 13 '26 17:08

Radu Bompa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!