79274173

Date: 2024-12-12 07:37:09
Score: 0.5
Natty:
Report link

Apps Script’s setRequireLogin(requireLogin) deprecated

According to Google’s documentation setRequireLogin() is actually deprecated and is not advised to be used anymore. However, I tested your code as is(still with the said method) and the script printed an error but still generated a new Form but to my surprise it can be accessed without logging in then I removed the setRequireLogin method and the form then required a login. Another relevant thing that I noticed and I believe this is where your situation falls into, Workspace account and a regular Gmail account receive different email fields. See images below.

Gmail Account enter image description here

Workspace Account enter image description here

References: Class Forms's deprecated methods

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: 4thAnd1