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

  • Home
  • SEARCH
  • 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 9156465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:46:57+00:00 2026-06-17T12:46:57+00:00

Not sure If I am missing something here but appears that when I use

  • 0

Not sure If I am missing something here but appears that when I use ‘validateEmail’ it requires the email address to be in lowercase. If you run my code below and type in your name and an email address with on uppercase value it will not submit. However, if you remove all uppercase values to lower it works fine. Does anyone know if this is by design or perhaps a bug?

function doGet() {
//  // Create the signup application
 var app = UiApp.createApplication();

  //Create vertical panel to hold the widgets
  var panelMain = app.createVerticalPanel().setId('mainPanel');

  var lblName = app.createLabel('Name:').setId('lblName').setWidth('80px')
  .setStyleAttribute("fontFamily","Trebuchet MS")
  .setStyleAttribute("fontSize","12pt");


  var txtName = app.createTextBox().setName('txtName').setId('txtName').setWidth('300px')
  .setStyleAttribute("background-color", "#ffbb00")
  .setStyleAttribute("fontFamily", "Trebuchet MS")
  .setStyleAttribute("fontSize", "12pt");

  var lblEmail = app.createLabel('Email:').setId('lblEmail').setWidth('80px')
  .setStyleAttribute("fontFamily","Trebuchet MS")
  .setStyleAttribute("fontSize","12pt");

  var txtEmail = app.createTextBox().setName('txtEmail').setId('txtEmail').setWidth('300px')
  .setStyleAttribute("background-color", "#ffbb00")
  .setStyleAttribute("fontFamily", "Trebuchet MS")
  .setStyleAttribute("fontSize", "12pt");

  var lblRequiredEmail = app.createLabel('*').setId('lblRequiredEmail');
  var lblRequiredName = app.createLabel('*').setId('lblRequiredName');
  var lblStatus = app.createLabel("Sign up to receive specials and promotions.").setId('lblStatus')
  .setStyleAttribute("fontFamily","Trebuchet MS")
  .setStyleAttribute("fontSize","12pt");

  var btnSubmit = app.createButton("Submit").setId("btnSubmit").setWidth("120px")
  .setStyleAttribute("fontFamily", "Trebuchet MS")
  .setStyleAttribute("fontSize", "12pt")


  var gridMain = app.createGrid(4, 3).setId('gridMain');

 gridMain.setWidget(0,0,lblName)
 .setWidget(0,1,txtName)
 .setWidget(0, 2, lblRequiredName)
 .setWidget(1, 0,lblEmail)
 .setWidget(1, 1,txtEmail)
  .setWidget(1,2,lblRequiredEmail)
 .setWidget(2,1,btnSubmit);

  panelMain.add(lblStatus).add(gridMain);




  //Create server handler for when user submits the information
  var serverHandler = app.createServerHandler('Signup')
 .validateEmail(txtEmail)
 .validateLength(txtName,1,500)
 .addCallbackElement(panelMain);


  var validateEmail = app.createClientHandler()
  .validateNotEmail(txtEmail)
  .forTargets(txtEmail).setStyleAttribute("color", "red")
  .forTargets(lblRequiredEmail).setVisible(true)
  .setText('Invalid Email')
  .setStyleAttribute("color", "red");


  var validateName = app.createClientHandler()
  .validateNotLength(txtName,1,500)
  .forTargets(txtName).setStyleAttribute("color", "red")
  .forTargets(lblRequiredName).setVisible(true)
  .setText('Please Enter Name')
  .setStyleAttribute("color", "red");

 btnSubmit.addClickHandler(serverHandler).addClickHandler(validateEmail).addClickHandler(validateName);
   app.add(panelMain);
  return app;
}

function Signup(thisForm)
{

  var app = UiApp.getActiveApplication();
  var txtName = thisForm.parameter.txtName;
  var txtEmail = thisForm.parameter.txtEmail;
  var lblStatus = thisForm.parameter.lblStatus;

  //Other code to save to data store
 ////
  app.getElementById("lblStatus").setText('Thanks for signing!');
  app.getElementById('gridMain').setVisible(false);

  return app;

 // return app2; //Everything is working fine right now 

}
  • 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-17T12:46:58+00:00Added an answer on June 17, 2026 at 12:46 pm

    I don’t think that validateEmail has worked this way in past. I’d tried the solution in Is there a way to turn off Auto Fill for users when filling out a form? before, and I’m pretty sure that it took mixed case. @Serge might remember.

    Issue 1799: validation functions in google apps script is not working properly had been reported then closed in Sept 2012 because it was too broad. I think that opens the door to report this specific problem.

    For an alternative that does its own email validation, and handles mixed case, have a look at this Apps Script Tutorial on Email Validation.

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

Sidebar

Related Questions

I a missing something here but I am not sure what is that. So
I'm not sure if I'm totally missing something here but I can't find any
I am not sure whether i am missing something here, but it seems i
I'm not sure if I'm just missing something here, but is it possible to
I'm missing something here, but I'm not sure how to fix it. The first
Maybe im missing something but im not sure. All im simply trying to do
I'm not sure if I'm missing something really obvious, but I keep getting a
I must be missing something obvious but I'm not sure what. I've created a
I have to be missing something simple, but I'm really not sure what. I
not sure what I'm missing here, but i keep getting the error. SQLSTATE[HY093]: Invalid

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.