function public () {
const iter = DriveApp.getFolderById('1Nshuhta4TDSg5aH3a6eVApAHWeaGhl0-').getFilesByName("empty")
while(iter.hasNext()){
const file = iter.next()
try{
DriveApp.getFileById(file.getId()).setSharing(DriveApp.Access.ANYONE, DriveApp.Permission.VIEW)
}
catch(err){}
}
}
I assume you want people to fill out the form (not to be modifying them).
For filling out the form, you do not need to provide sharing of the forms themselves. All you need is to get the published URL for the form and then send that link to the people you want to fill out the form.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/9f00c135-4125-4090-bd48-f31d758d88bfo%40googlegroups.com.