google-forms

How to automatically rename folder based on uploaded file if there are duplicated folder name Google Form

馋奶兔 提交于 2020-12-13 03:57:46
问题 This is the next episode of my previous question (which was solved): Google Form Upload files to specific new folder based on the value submitted SO, I succeeded to create a new folder on Google Drive based on value inputted by user in field NAME using this script. function onFormSubmit(e) { const folderId = "###"; // Please set top folder ID of the destination folders. const form = FormApp.getActiveForm(); const formResponses = form.getResponses(); const itemResponses = formResponses

onSubmit form validation

独自空忆成欢 提交于 2020-08-11 18:10:26
问题 I am working on Google Forms, I look into the available events and there are only two; open and onSubmit I want to stop form submission if one of my validation criteria fails that would be specified on my app script for the form onSubmit trigger. For example, I want to fetch the value of one of the fields and compare it to a list of values in a spread sheet if the value in the form is found in the spread value list then proceed to form submission otherwise prompt user to resubmit form. Is