Done! Generate tokens & distribute secure links
Once the test passes, the form is live. Next steps:
A — Make the endpoint permanent: Hardcode the endpoint in this HTML file by setting:
var HARDCODED_ENDPOINT = "https://script.google.com/macros/s/AKfycbwL94eJuThMMo7SHeNuiJIRSm9T3nV3WmgTRa1zwfqGsP1kT-L5-koylK5f0_s_2FN-mA/exec";
Then save and host this file.
B — Generate employer tokens: In Apps Script, run the
generateToken function (Run menu > generateToken). Copy the token from the Execution Log, then add it to the
Tokens sheet with the employer name and Active = TRUE.
C — Send employers their secure link:https://YOUR-HOSTED-URL/portal.html?t=EMPLOYER_TOKEN
Each employer gets a unique token. They never see the setup panel or admin tools — just the 4-step submission wizard.
Security notes: Tokens can be deactivated anytime by setting Active = FALSE in the Tokens sheet. Admin mode (?admin=1) is for internal staff only and should never be shared with employers.