google-form

get Entry ID which is used to pre-populate fields (Items) in a Google Form URL

送分小仙女□ 提交于 2020-06-23 03:07:35
问题 NOTE: This question is not about finding ID of an Item (form element), but an ID of Entry. These are different things. Entry ID is a number which is used to pre-populate fields (Items) in a form URL. As described here https://developers.google.com/apps-script/reference/forms/text-item it is possible to get a TextItem ID (actually, any Item ID) via getID() method. If you open any public Google Form HTML source code you will see something like this in the var FB_PUBLIC_LOAD_DATA : [232495719,

How to get element id in google forms

我只是一个虾纸丫 提交于 2020-06-17 06:40:25
问题 I want to get the id of an element in google forms. I found on the internet that it can be done by right clicking on the element and opening inspect element. It is working for older forms but, for new forms, it doesn't show any id attribute. I am posting both images of inspect element. Old forms: New forms: 回答1: In new form google have replace id with name attribute.So do one thing, write something in textbox then rightclick on textbox and open inspect element, Here you will find item tag

How to get element id in google forms

允我心安 提交于 2020-06-17 06:40:11
问题 I want to get the id of an element in google forms. I found on the internet that it can be done by right clicking on the element and opening inspect element. It is working for older forms but, for new forms, it doesn't show any id attribute. I am posting both images of inspect element. Old forms: New forms: 回答1: In new form google have replace id with name attribute.So do one thing, write something in textbox then rightclick on textbox and open inspect element, Here you will find item tag

Retrieving the link to a response from a Google Form

僤鯓⒐⒋嵵緔 提交于 2020-06-16 00:36:11
问题 I have a script attached to a Google Form which sends a notification to a Discord channel on submission. I want to include a direct link to the individual response (link looks like https://docs.google.com/forms/d/<myformid>/edit#response=<responseid> ). How can I retrieve that link? I get part of the link up to /edit with Form.getEditUrl() but I can't get the correct id. I checked FormResponse.getId() but that doesn't link me to any response. Here's how to get to that link manually via edit

Javascript/jQuery: how to get data value from another class

巧了我就是萌 提交于 2020-06-01 05:08:15
问题 The issue is when I add more than 1 product in the Cart Page I want to get all product titles and quantities like this example: 1st Product Title, 3 - 2nd Product Title, 1 - ... but when I try with the code I'm sharing with you bellow I get only data of the first product but for other products I don't get any data, so I want to get class2 data because this class collect data of all products in the cart page (title + quantity of each product), hope I've explained it clearly Form code: <label

how to set Confirmation Message based on form Responses in google forms using Apps Script?

柔情痞子 提交于 2020-05-13 06:49:17
问题 In google forms, using google apps script, will I be able to use the values submitted through the form to set the confirmation message which is to be displayed to the user, who has submitted those values? Note that, the default confirmation message now is "The response has been recorded" and I know that I can change this text to other text, but what I need is to manipulate the message based on responses of the user. 回答1: When you .setConfirmationMessage(message) on form submit, the current

how to set Confirmation Message based on form Responses in google forms using Apps Script?

杀马特。学长 韩版系。学妹 提交于 2020-05-13 06:48:25
问题 In google forms, using google apps script, will I be able to use the values submitted through the form to set the confirmation message which is to be displayed to the user, who has submitted those values? Note that, the default confirmation message now is "The response has been recorded" and I know that I can change this text to other text, but what I need is to manipulate the message based on responses of the user. 回答1: When you .setConfirmationMessage(message) on form submit, the current

Embed a google form in email with script the way google does it when option include form in email is used

冷暖自知 提交于 2020-05-10 08:53:06
问题 I have to send a form to some people and I do it with a google script. I try to embed the form in the email with this code : https://stackoverflow.com/a/23671529/4305236: var form = FormApp.create('New Form'); .... var url = form.getPublishedUrl(); var response = UrlFetchApp.fetch(url); var htmlBody = HtmlService.createHtmlOutput(response).getContent(); MailApp.sendEmail({ to: email, subject: subject, htmlBody: htmlBody, }); ... But it doesn't send the form the way google does it when the

How to dynamically change an existing text item value on Google Forms using Google Apps Script

折月煮酒 提交于 2020-04-18 05:40:30
问题 I have an existing Google Form in which there is a TextItem with a title "Which location was this performed at?". Whenever the form is loaded (opened), I need to set a location value (loc) to this existing textbox and show it to the user. function populateMemberIds(loc){ var form = FormApp.openById(formUrl); var questions = form.getItems(); for (var i=0; i<questions.length; i++){ if(questions[i].getTitle()=="Which location was this performed at?"){ var textItem = questions[i].asTextItem(); /

How to create Google Form Quiz using Google Apps Script or GAS?

╄→гoц情女王★ 提交于 2020-04-17 20:41:50
问题 Is it possible to create a quiz form using GAS from a list of questions and answers on the spreadsheet? I'm making a word test for English learners, on which test-takers are asked to type an answer for each question. I've created a quiz with multiple questions or with radio buttons..., but I have been not able to import TEXT answers from spreadsheets to the TEXT-type quiz. The script I have is below... function myFunction() { var ss = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(