Dynamically show / hide form elements using the Google Script application in Google Form

I have a profile created using a Google form. When a user fills out an answer, some questions should be skipped based on the answer to some previous questions. Although I can trust the user that they will follow the instructions, I feel that I can improve it by hiding the questions.

I know that I can do this by dividing the questionnaire into pages and using the default "go to page" function provided by the Google form. However, since there are too many such questions, I do not want the user to wait for the page to load after almost every question. Unfortunately, there is no default option to show / hide a question based on a user's choice on a Google form.

Then I found that there is a Google script application. I think this can help me realize such basic things, but then I am upset that I can’t even find the object in the questionnaire, and it seems that it lacks the function of controlling the visibility of the question objects. (or at least not found in the menu)

Google menu link: https://developers.google.com/apps-script/reference/forms/

Now I'm completely lost. I have google and search here on stack overflow but nothing was found. Any idea on how I can proceed?

+6
source share
1 answer

We are currently unable to receive or process any items in the Google Live Form using Google Apps Script when a user fills it out. Only the Google Form program editor can be programmed. A script can either help create a form before opening it, or configure it to run a function after sending a response. See quickstart for working with Google Form answers and Example add-in for Google Form Builder.

To dynamically display form elements or change input values ​​as users fill out:

  • Build and deploy your own web application that acts like a form with HtmlService (hosted at script.google.com)
  • Create a standard HTML form hosted on your own service.
+7
source

Source: https://habr.com/ru/post/956627/


All Articles