google apps script - Get username without requiring it -
there's interesting problem i'm facing educator. want collect user names in form, when that, automatically enables students email copy of response.
i believe there's way somehow poll who's responded. when enable "one response per user" option, doesn't require stored user name. know information out there somewhere - don't know how it.
any appreciated!
edit: neglected specific coding aspect - apologies. i'm generating form programmatically, , wanted know if information stored somewhere in response when one-response-per-person option enabled. after more digging, appears easiest way deal use extension handle disabling email option.
thanks help!
you cant user email unless enable option mentioned. yes google might internally know if logged-in not perfect because using chrome incognito mode example not detect email.
one way can think to:
1) apps script generate array of student emails , random password. dump private spreadsheet , use database next script.
2) in forms, ask first form question custom username , password.
3) on script can generate form urls prefilled usernames , passwords , email each student own custom form url.
when student opens form respond, username , password prefilled already.
not perfect malicious user need hack email , if can hack email impersonate user logged-in.
Comments
Post a Comment