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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:56:21+00:00 2026-06-13T06:56:21+00:00

How can I dynamically add a mask to the textbox input in google app

  • 0

How can I dynamically add a mask to the textbox input in google app scripts?
I have a textbox that is intended to get a date, but I want the script to add the slash (/) by itself.

For example: the user enters “01022009” and dynamically the script gives the result “01/02/2009”.

But not after all the numbers are added by the user. The behaviour I would like to get is that after typing “01” automatically the script add the slash after that an so on, so the final result would be “01/02/2009”.

I’ve tried many ways but could not get the expected result.

  • 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-13T06:56:22+00:00Added an answer on June 13, 2026 at 6:56 am

    This can’t be done if you’re using UiApp, because clientHandlers are limited and can’t do this, and serverHandlers are just to slow to effective take action while the user types.

    If you use HtmlServices, it may be possible to get something acceptable working, but I’m not sure you’ll be able to get it working perfectly, because AFAIK it is not possible to get the current caret position, due to Google Caja sanitization of your client-side javascript code.

    Anyway, as suggested on a comment to your question, changing the input while the user types it is pretty annoying, I wouldn’t do it.

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

Sidebar

Related Questions

I'm attempting to have a UITableView that I can dynamically add and remove rows
Really need your help. I have a table that can dynamically add and delete
I want an app or python package that can 1.Dynamically add python script to
I have a page where the user can dynamically add file upload boxes. Adding
The problem in my case is I can dynamically add / remove input boxes,
I know that I can dynamically add an instance method to an object by
I want to dynamically add triggers to a job, but can't find any helpful
I can dynamically add new accordion panes, but they don't work. Any ideas? I
Below is code for a class that can dynamically add logging to a method.
Trying to make a make generic select control that I can dynamically add elements

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.