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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:22:19+00:00 2026-06-13T12:22:19+00:00

As described here: https://developers.google.com/apps-script/html_service#GoogleScriptAPI I am using a little form in my google app

  • 0

As described here:

https://developers.google.com/apps-script/html_service#GoogleScriptAPI

I am using a little form in my google app scripts html interface template to allow submission of data:

<form id='myForm'><input type='button' onclick='google.script.run.processForm(this.parentNode)'></form>

This hits a function in my script that updates a spreadsheet cell like so:

function processForm(params) {
  var ss = SpreadsheetApp.openById(XXXXXXXXX);
  var email_sheet = ss.getSheetByName('Week '+(parseInt(params['week'],10)+1)+' Assignments');
  var range = colName(parseInt(params['assignment'],10)+1) + (parseInt(params['match'],10)+1);
  var existing_val = email_sheet.getRange(range).getValue()
  email_sheet.getRange(range).setValue(existing_val+ params['submission']);
}

Lots of things a bit specific to my larger system there, but what this does is allow students in my classes to submit assignment info, which is dumped into a place in the spreadsheet that corresponds with their google login, and when they refresh the page, the html interface updates to indicate receipt of submission. The interface looks like this:

htmlinstance interface using google app script form submissions

Just having got this to work I am popping the champagne, since it will hugely simplify managing student submissions, but at the moment the interface would be much more intuitive if when the user hit the submit button that there would be an immediate update removing the form, and switching from the red cross to the green tick. At the moment the user must reload the entire page.

From reading the docs:

https://developers.google.com/apps-script/html_service#Caja

it seems like jqueryUI might be the way to do something like this, but I’m not clear if jqueryUI will play well with the google app script form submission. I’m going to be studying the jqueryUI in much detail, but I wondered if anyone knew if these two will even mix.

From searching around the subject, I see JQueryUI will not mix with google app scripts UIInstance

How to mix jQuery and a UiInstance for generating GUIs

however I am working with htmlinstance, so jquery should be fine right? Or am I barking up the wrong tree completely?

Many thanks in advance

p.s. I really need to work out how to better style the submit buttons, and also if you hit return in the text files it seems like a full form submit takes place and gives this error “this webpage is not available
The server at 9f9e682e-25ca-4eae-b4f9-6cac8db35390.foo.bar can’t be found, because the DNS lookup failed. DNS is the network service that translates a website’s name to its Internet address.” – I’ve searched that error online, but to no joy – hopefully again JQueryUI can help me fix this, even with Caja sanitization … just would love to get input on whether I should cut my losses with the interface I got so far …

  • 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-13T12:22:20+00:00Added an answer on June 13, 2026 at 12:22 pm

    You can use jQuery and jQueryUI normally with HtmlService, it does not interfere with your form submission part of the script. The looks of a page, form or its does not affect the handling of their values.

    But, from your description, what you really need to make this ‘icon switching’ and ‘hiding the input and button’ is just some good old javascript. jQuery can make it easier (less code), but if you’re not comfortable with plain javascript, it will probably just give you more trouble to set up. The same applies to jQueryUI, which makes it easier to build beautiful interfaces, but yours seems somewhat simple and jQueryUI may be an overkill.

    Hope this helps.

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

Sidebar

Related Questions

I tried out the Tasks example described here: https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android by enabling the Tasks API
Google Contacts API 3.0 is described here: https://developers.google.com/google-apps/contacts/v3/reference But this document is not complete.
I'm trying to implement Google oAuth 2 for service accounts described here: https://developers.google.com/accounts/docs/OAuth2ServiceAccount on
I'm considering moving my apps to another Google (Apps) Account as described here: http://www.google.com/support/androidmarket/developer/bin/answer.py?hl=en&answer=139626
The site I am working on uses Facebook Javascript SDK, as described here https://developers.facebook.com/docs/reference/javascript/
I put the Android key hash in the developer settings, like described here: http://developers.facebook.com/docs/mobile/android/build/#sig
I am trying to create my first hello world described here: http://developer.chrome.com/trunk/apps/first_app.html but I
I'm trying to use Flurry analytics in an IPad app as described here: http://blog.kevfoo.com/index.php/2010/08/monotouch-flurry-analytics-bindings/
I have a problem very similar to the one described here: https://microsoft.public.win32.programmer.kernel.narkive.com/Ly2P8Yp2/prevent-vista-from-marking-my-application-as-non-responding That thread
I'm having the problem described here: http://groups.google.com/group/microsoft.public.xml.soap/browse_thread/thread/029ee5b5d4fa2440/0895d73c5c3720a1 I am consuming a Web Service using

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.