Google Form API?
Google released API for this: https://developers.google.com/apps-script/reference/forms/ This service allows scripts to create, access, and modify Google Forms.
Google released API for this: https://developers.google.com/apps-script/reference/forms/ This service allows scripts to create, access, and modify Google Forms.
Finally found the answer. It’s pretty stupid, but apparently saving and republishing your google script web app is not good enough. You need to save a new version and publish the new version to make sure your app gets updated properly.
One suggestion: use Pandoc to convert Markdown to docx, then import to Google Docs using the Google Drive API. You can also accomplish this using the Google Drive web interface: Convert markdown to ODT (or some other intermediate) using pandoc: pandoc MyFile.md -f markdown -t odt -s -o MyFile.odt Move the ODT file into your … Read more
Utilities.sleep(milliseconds) creates a ‘pause’ in program execution, meaning it does nothing during the number of milliseconds you ask. It surely slows down your whole process and you shouldn’t use it between function calls. There are a few exceptions though, at least that one that I know : in SpreadsheetApp when you want to remove a … Read more
As of now (June, 2020), it is possible to do what you described. Here is an official documentation. Shortly: Select part of text where you want to add a link, then click Insert -> Link or using shortcuts – CMD + K/CTRL + K. Personally, when I was clicking Insert from menu bar, my text … Read more
You can use something like this : function getSheetById(id) { return SpreadsheetApp.getActive().getSheets().filter( function(s) {return s.getSheetId() === id;} )[0]; } var sheet = getSheetById(123456789); And then to find the sheet ID to use for the active sheet, run this and check the Logs or use the debugger. function getActiveSheetId(){ var id = SpreadsheetApp.getActiveSheet().getSheetId(); Logger.log(id.toString()); return id; … Read more
DriveApp is indeed missing a getFileByUrl (and also folder for that matter). You may want to open an enhancement request on Apps Script issue tracker. But what I do on my scripts (since these openByUrl functions are somewhat new), is to get the id using a regex. Like this. function getIdFromUrl(url) { return url.match(/[-\w]{25,}/); } … Read more
Here the code function rowOfEmployee(){ var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var data = sheet.getDataRange().getValues(); var employeeName = sheet.getRange(“C2”).getValue(); for(var i = 0; i<data.length;i++){ if(data[i][1] == employeeName){ //[1] because column B Logger.log((i+1)) return i+1; } } } When you want to perform this kind of lookup it is better to retrieve data with sheet.getDataRange().getValues() because in this … Read more
I assume you’re only interested in ways to programmatically assign a unique ID before the user fills out your form. No, Google Forms still has no direct support for hidden fields such as you have in HTML Forms. Your only option appears to be the custom styling route, which you’re already aware of. Here are … Read more
Apps Script only exposes server side events. Unfortunately, you cannot register client side events like keyboard strokes today. Please log an issue in our issue tracker