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 8585725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:08:17+00:00 2026-06-11T22:08:17+00:00

I am getting TypeError: Cannot read property parameter from undefined. when trying to log

  • 0

I am getting “TypeError: Cannot read property “parameter” from undefined.” when trying to log e.parameter properties. (I inserted the following lines in the contactMe() function)

Logger.log(e.parameter.textBox);
Logger.log(e.parameter);

The script otherwise works fine, any idea?

function doGet() {
  var app = UiApp.createApplication();

  var mainPanel = app.createVerticalPanel().setId('mainPanel');
  app.add(mainPanel);

  mainPanel.add(app.createLabel('Enter your email to sign up'));

  var form = app.createHorizontalPanel();
  mainPanel.add(form);

  var email = app.createTextBox().setName('textBox').setId('textBox');
  form.add(email);

  var button = app.createButton('Sign up');
  form.add(button);

  var info = app.createLabel().setVisible(true).setId('info');
  mainPanel.add(info);

  //handler
  var handler = app.createServerHandler('contactMe').addCallbackElement(mainPanel);
  button.addClickHandler(handler);

  return app;
}

function contactMe(e){
 var app = UiApp.getActiveApplication();

 Logger.log("testing");
 Logger.log(e.parameter);
 Logger.log(e.parameter.textBox);

 app.getElementById('textBox').setValue('').setStyleAttribute("color", "black");
 app.getElementById('info').setText('Thank you!').setStyleAttribute("color", "black");

 var ss = SpreadsheetApp.openById('0AqKSxC6f0Cc7dF9aT1lUeXFEcnR2eUFYRGs4Y1NiVVE')
                        .getSheets()[0];
 var range = ss.getRange(ss.getLastRow()+1, 1, 1, 2);

 var values = [[new Date(),e.parameter.textBox]];  
 range.setValues(values); 

 return app;   
}
  • 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-11T22:08:18+00:00Added an answer on June 11, 2026 at 10:08 pm

    I just tested your exact code (except the sheet stuff) and it works nicely… except that the logger doesn’t show anything when called from a handler function but that’s a known issue…

    I used the label to check the e.parameter value like this :

     app.getElementById('info').setText(e.parameter.textBox).setStyleAttribute("color", "black");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting the following error: TypeError: Cannot read property 0.0 from null. (line227) I've
I'm getting the error: Uncaught TypeError: Cannot read property 'constructor' of undefined When declaring
I'm getting an an error TypeError: Cannot read property 'style' of undefined I'd be
I'm getting the following error, while using ExtJs MVC, Uncaught TypeError: Cannot call method
I'm getting a TypeError: cannot concatenate 'str' and 'list' objects. I'm trying to pass
I'm getting this error: TypeError: Error #1009: Cannot access a property or method of
I've been getting... User exception thrown: TypeError: Error #1009: Cannot access a property or
I am using Uploadify 3.1 and am getting the error Uncaught TypeError: Cannot read
I am getting the following error when running my code: Typeerror: lambda() takes exactly
I have the following code however am getting the error Uncaught TypeError: Object #<addThis>

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.