Relative Content

Tag Archive for google-apps-scriptgoogle-forms

Display Calculated Values in Google Form

I’m currently making an order form for some apparel for my church group.
I decided to use Google Forms for this.
You can order a shirt (20€) and/or a hoodie (50€). Then there will be a 20€ discount.
I would like to display the total at the end of the form, but I can’t figure out how.

How can I submit a Google Form with Apps Script when the form is set to collect emails via Responder Input?

The script I am using iterates through the form questions, gets the item type, and builds a response based on the expected item response type. But the Email question presented to the end user in the form when it’s set to Responder Input does not appear in the returned list of items when I call form.getItems(). So I don’t know how to include the responder’s email in the form response I send to the API.

Google Apps Script – Implementing “Go to section based on answer” when updating Google Forms from sheet lists

It’s been a while since I’ve posted anything, so bear with me please! I’ve successfully loaded dropdown options from google sheets into google forms. I’m using a trigger to update the form anytime the data in the sheet is changed (i.e. a new name is added to the list). The problem is that the “Go to section based on answer” choice is erased every time the update occurs. How can I implement this into my code? I’ve initialized the variable “goTo” to represent the section I’ll assign to each choice in the dropdown (this will be achieved with a select statement).

Needing to send emails to different email addresses based on conditions or inputs into a google form

I am needing to send emails via Appscript to different people based on different conditions that were selected from one particular question on a google form. E.G. All EBO selections sent to email addy 1, all non-EBO selections sent to email addy 2, and then all selections sent to email addy 3. Below is what I have, but no matter what option is selected on the form, it only sends the email per the first if statement.