I have a Google Form that's used as a weekly sign-up sheet. I need a form for each week of the year and my current workflow involves manually duplicating and renaming the form each week.
I'm attempting to use some automation to speed up this workflow and reduce the amount of manual work. I have the following Google Apps Script that I'm using that makes a copy of the original Form.
function duplicateForm() {
var templateformId = '1WsWb-VHK36Hm5YY5YaZaA14RdM2GhIujPwqmxiFDMk8';
var destFolder = DriveApp.getFolderById("1zWmCz9BaJwctdcCfutUsvAs1_qQhledk");
var file = DriveApp.getFileById(templateformId).makeCopy("Training Requests 2023", destFolder);
var fileId = file.getId()
}
Ideally I'm wanting to rename each new form with a week start date e.g.
- Training Requests 2023 - 02/01/2023
- Training Requests 2023 - 09/01/2023
- Training Requests 2023 - 16/01/2023
And so on until it gets to the last Monday of the current year.
Does anyone know a way of achieving this?
Try this: