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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:22:45+00:00 2026-06-08T20:22:45+00:00

First time on StackOverFlow! I am working on building an app that takes in

  • 0

First time on StackOverFlow!

I am working on building an app that takes in a value through a UI Form TextBox. Once that form is submitted it calls a method that then appends a “/” to the value. The problem is that .append() is not available, because getElementById() returns a GenericWidget object and thus cannot be operated on as if it were a string. I have tried type casting it use .toString() in the var userinput = app.getElementById(‘input’).toString; call and afterward using userinput = userinput.toString.

I have been working with Apps Script for about a month and a few days now and I think that casting to a different type other than GenericWidget would be helpful for anyone who wants to modify a value in a type specific way after passing the value to another method.

I have also done a good bit of research trying to find a solutiong for my problem but like a couple times in the past working with Apps Script I find that since it is a younger language there isn’t as much helpful information as there is with languages like Javascript, HTML, and XML. Any help is appreciated.

  • 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-08T20:22:46+00:00Added an answer on June 8, 2026 at 8:22 pm

    You have to get the textBox value using e.parameter.textBoxName an then re-assign a value to the textBox. A short example will be more explicit

    function doGet(){
     var app = UiApp.createApplication();
     var textbox = app.createTextBox().setName('txt').setId('txt')
    // add other elements, handlers, callBackElements, etc...
    }
    
    function changetext(e){
    var app = UiApp.getActiveApplication();
    var textBoxValue = e.parameter.txt ; // get the value in the text box
    var txtBoxWidget = app.getElementById('txt') ; get the widget by its ID
    txtBoxWidget.setText(textBoxValue+'/'):// assign the modified value
    return app ;// update the UI with new value
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is my first time asking a question on stackoverflow. I'm working on a
That's my first time posting on stackoverflow. I've been finding usefull answers on this
This is the first time I am working for a front-end project that requires
This is my first time using stackoverflow for a question that I need to
This is my first time asking my question at stackoverflow. I'm working on a
First time stackoverflow user but occasional lurker, hope you guys can help me out.
I'm a first time programmer, first time StackOverflow user, studying from Allen Downey's free
This is my first time on StackOverflow though I read Coding Horror quite often.
first time posting in StackOverflow. :D I need my software to add a couple
this is my first time posting on StackOverflow but this site is awesome. Thanks

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.