Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7999349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:28:49+00:00 2026-06-04T15:28:49+00:00

I have been using the FormEmailer script written by Henrique Abreu. It is an

  • 0

I have been using the FormEmailer script written by Henrique Abreu.
It is an amazing program & I am so glad to have found it.
I have one issue that has confounded me though. When I process the lines manually, it works perfectly, however, when I want to use the form submit trigger, I get an error message & it doesn’t work. This is the message:
onEdit TypeError: Cannot call method “getSheetByName” of undefined. (line 198) formSubmit
I am stumped, any help, or suggestions would be greatly appreciated!
Thanks in advance, Michael

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T15:28:51+00:00Added an answer on June 4, 2026 at 3:28 pm

    How are you setting/running it for the “form submit”? From your description it seems that you’re trying to run it directly from the code editor, are you? If not, then this error message you’re getting is on your email, right?

    Anyway, the correct function to run is called timeDriven. And you should open the script editor, click the “Resources” menu and set the trigger to run it. When I wrote this version, there was no concurrency support or anyway to get the row of the form submitted. Therefore the only safe solution we had was to use the time-driven trigger, which is what I recommend you to use. But if you form has somewhat low usage, i.e. it’s unlikely that two or more users will submit data nearly simultaneously, then you can use the on form submit trigger.

    By the way, I’m not sure Stackoverflow is the best place to ask questions related to FormEmailer, as it is really meant only for programming doubts. Well… unless you’re modifying its code. FormEmailer related questions should be posted in its Google Group.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using this script for a while and suddenly it just stopped
I have been using the DelegateCommand found in the MVVM Visual Studio template at
I have been using this script of mine FOREVER and I have always been
I have been using this piece of script to load external .js files to
I have been using Visual Studio integrated with Source Safe for years, when I
I have been using this code with great success to pull out the first
I have been using the CodeIgniter system for a while now - but it
I have been using a noscript tag to show a warning when users have
I have been using WPF for a few years now and don't have any
I have been using Weblogic as my company used it. Now I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.