5

I am new to Google Apps Script and need help. I am trying to achieve the following:

Set a trigger for lost-focus of a textbox in Google Forms. The code in this event will be

  1. Get the value of a textbox
  2. Set the value of a textbox
Rubén
  • 34,714
  • 9
  • 70
  • 166
Sasmit
  • 160
  • 1
  • 10

2 Answers2

7

Unfortunately this is not currently possible with Google Apps Script and Google Forms. Apps Script can be triggered by the submission of a Form, but it cannot interact with the Form in the users browser.

It is possible to build a form entirely in Apps Script (using HTML) which would allow you full control over the user experience, but you lose access to the functionality provided by Google Forms.

Cameron Roberts
  • 7,127
  • 1
  • 20
  • 32
0

Option 1) Try Google Apps Script

Option 2) While adding arbitrary JavaScript is not supported by Google Forms, it is still possible to get sources of your form, extend with extra scripts and host on your site with results still posted to Google Forms/Google Sheets

See

Paul Verest
  • 60,022
  • 51
  • 208
  • 332