To create a registration form that allows users outside your domain to:
- Submit registration details.
- Upload a file.
- Save the uploaded file to your company's Google Drive folder (even though the user doesn't have access).
- Record the submitted data into a Google Sheet.
Here’s how you can do it using Google Forms, Google Apps Script, and optionally Google Cloud Platform (GCP) or third-party tools like Jotform or Typeform with integrations.
✅ Option 1: Using Google Forms + Google Apps Script (Recommended)
🔧 Step-by-Step Guide
📌 Step 1: Create a Google Form
- Go to Google Forms.
- Create a new form with:
- Name, Email, etc. (standard fields).
- Add a File Upload question (users can upload files from their device).
⚠️ Note: The file is uploaded to your Google Drive if the form is linked to your account, even if the submitter doesn’t have access.
- Set the form to accept responses from anyone (even non-domain users):
- Click the gear icon > "General" tab > Allow response editing = ON.
- Under "Responses", ensure collecting responses is turned on.
- Under "Restrict to users in [yourdomain]" → Turn this OFF.
📌 Step 2: Link the Form to a Google Sheet
- In the Google Form, click the Sheets icon (top right).
- Create a new spreadsheet or select an existing one.
- Now all form submissions will be saved there automatically.
📌 Step 3: Move Uploaded Files to Your Shared Folder (Using Apps Script)
By default, uploaded files go to a subfolder of your Drive called Form Responses. You’ll need to move them to your shared folder using a script.
💡 Steps:
-
In the Google Form, open the Script editor:
- Click Extensions > Apps Script
-
Replace the code with the following script:
function onFormSubmit(e) {
// Get the file URL from the form submission
var fileUrl = e.namedValues['Your File Upload Question Title'][0]; // Update with your actual question title
var fileId = getFileIdFromUrl(fileUrl);
if (!fileId) return;
var file = DriveApp.getFileById(fileId);
var targetFolder = DriveApp.getFolderById("YOUR_SHARED_FOLDER_ID"); // Replace with your shared folder ID
// Move file to target folder
file.moveTo(targetFolder);
}
// Helper function to extract file ID from the URL
function getFileIdFromUrl(url) {
if (!url) return null;
var regex = /\/d\/([a-zA-Z0-9_-]+)/;
var match = url.match(regex);
return match ? match[1] : null;
}
-
Replace:
"Your File Upload Question Title" with the exact name of your file upload question.
"YOUR_SHARED_FOLDER_ID" with the ID of your shared Google Drive folder (you can get this from the folder URL: https://drive.google.com/drive/folders/HERE_IS_THE_ID)
-
Save the project and deploy a trigger:
- Click the clock icon (Triggers) > Add Trigger
- Choose function:
onFormSubmit
- Event source:
From form
- Event type:
On form submit
- Save
📌 Step 4: Share the Form Publicly
- Click Send in the top right of the Google Form.
- Use the link or embed it on your website.
- Anyone with the link can now submit the form and upload files.
✅ Option 2: Use Jotform or Typeform + Zapier or Make.com
If you want more customization or advanced features (e.g., branded forms, conditional logic, email confirmations), use:
- Jotform or Typeform
- Connect via Zapier or Make.com (Integromat)
- Actions:
- On form submission:
- Upload file to your Google Drive folder
- Log data to Google Sheets
This is useful for:
- Better UI/UX
- Conditional logic
- Multi-step forms
- Payment integrations
Let me know if you’d like a setup guide for this option.
✅ Summary
| Task | Tool |
|---|
| Collect Data & File Upload | Google Forms |
| Store Submissions | Google Sheets |
| Move File to Shared Folder | Google Apps Script |
| Automate Workflow (optional) | Zapier / Make.com |
❗ Notes & Limitations
- Users must allow Google to process their file uploads.
- Ensure your Google account has enough Drive space.
- Google Forms file size limit: 10 GB per file.
- Google Workspace accounts may require admin approval for external submissions.
Would you like a ready-to-use template or script? Or help deploying the Apps Script version?