google-apps-script

Uploading mp3 file to Google Drive from Google Apps Script

无人久伴 提交于 2020-05-14 08:56:30
问题 I have a Google Apps Script web app which I use to save form responses in a spreadsheet and Google drive. One of the form fields saves a file in Google Drive, but it's not working. HTML form (I have reduced it due to the form size) <form id="miformulario" onsubmit="envio_formulario(this)"> <input type="text" id="padre" name="padre" maxlength=8 value="" required class="form-control"/> <input type="email" id="mailp" name="mailp" value="" required class="form-control" /> <input type="file" name=

Change Bar color based on cell value

假如想象 提交于 2020-05-14 08:49:11
问题 I am trying to find a solution to automatically adjust the color of a stacked bar in a chart based on the value or color of a cell. Specifically, when I change the value of F2 I want the bar to change color as well, based off the color of the cell or the value/string of the cell. Here is my sheet: https://docs.google.com/spreadsheets/d/1QwAVPEtQ3l7iIZhLDYMT1I9eGc7HoaFsTyg1p-hi3G8/edit?usp=sharing I have setup my test data and researched solutions but haven't found a method to exactly do what

Change Bar color based on cell value

℡╲_俬逩灬. 提交于 2020-05-14 08:48:12
问题 I am trying to find a solution to automatically adjust the color of a stacked bar in a chart based on the value or color of a cell. Specifically, when I change the value of F2 I want the bar to change color as well, based off the color of the cell or the value/string of the cell. Here is my sheet: https://docs.google.com/spreadsheets/d/1QwAVPEtQ3l7iIZhLDYMT1I9eGc7HoaFsTyg1p-hi3G8/edit?usp=sharing I have setup my test data and researched solutions but haven't found a method to exactly do what

How can I authorize Google Speech-to-text from Google Apps script?

折月煮酒 提交于 2020-05-14 08:48:09
问题 I'm trying to execute google-speech-to-text from apps script. Unfortunately, I cannot find any examples for apps script or pure HTTP, so I can run it using simple UrlFetchApp. I created a service account and setup a project with enabled speech-to-text api, and was able to successfully run recognition using command-line example curl -s -H "Content-Type: application/json" \ -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \ https://speech.googleapis.com/v1/speech

How can I authorize Google Speech-to-text from Google Apps script?

早过忘川 提交于 2020-05-14 08:47:32
问题 I'm trying to execute google-speech-to-text from apps script. Unfortunately, I cannot find any examples for apps script or pure HTTP, so I can run it using simple UrlFetchApp. I created a service account and setup a project with enabled speech-to-text api, and was able to successfully run recognition using command-line example curl -s -H "Content-Type: application/json" \ -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \ https://speech.googleapis.com/v1/speech

Importing csv file to google sheets using script

半世苍凉 提交于 2020-05-14 01:01:56
问题 i am faced with the below problem. I am going to be presented with a .csv file that will contain the following fields: ItemID Date Source name Title URL Created ItemSourceType However i won't need all of the fields but i will need to import this into a pre-defined google sheets template, which looks like the below: Date Writer Status Geog/Area/Product Source Title Note Again not all of the columns will need to be populated, and so the final solution should look like this. Date Writer Status

Create dynamic dropdown list in the Google apps script [closed]

烂漫一生 提交于 2020-05-13 11:03:13
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I would like to dynamically change the value of the candidate list in the cell validation feature of a Google Spreadsheet using the Google Apps Script. I need to take values from other spreadsheet. 回答1: This is something I've grappled with, if I understand you correctly. Normally

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

Is it possible to add page breaks into Google Spreadsheet using Apps Script?

淺唱寂寞╮ 提交于 2020-05-13 06:26:16
问题 I would like to programmatically set page breaks in my Google Spreadsheet before exporting to PDF, using Apps Script It should be possible as you can manually set the page breaks when you print the Spreadsheet (https://support.google.com/docs/answer/7663148?hl=en) I found that it's possible in Google Docs (https://developers.google.com/apps-script/reference/document/page-break) but they don't mention it on the sheet. Is there a way to do it, even if it's a "hack"? 回答1: I use a work around. I