{"id":16528706,"url":"https://github.com/zetlen/mozu-google-contact-form","last_synced_at":"2026-06-07T08:32:32.333Z","repository":{"id":17613234,"uuid":"20417313","full_name":"zetlen/mozu-google-contact-form","owner":"zetlen","description":"Google contact form for Mozu sites","archived":false,"fork":false,"pushed_at":"2014-06-02T20:04:10.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-21T18:50:52.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mozilla/mozillians-tests","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zetlen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-02T19:53:49.000Z","updated_at":"2014-06-02T20:04:09.000Z","dependencies_parsed_at":"2022-08-31T05:41:09.449Z","dependency_job_id":null,"html_url":"https://github.com/zetlen/mozu-google-contact-form","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zetlen/mozu-google-contact-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zetlen%2Fmozu-google-contact-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zetlen%2Fmozu-google-contact-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zetlen%2Fmozu-google-contact-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zetlen%2Fmozu-google-contact-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zetlen","download_url":"https://codeload.github.com/zetlen/mozu-google-contact-form/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zetlen%2Fmozu-google-contact-form/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34014821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T17:41:17.360Z","updated_at":"2026-06-07T08:32:32.317Z","avatar_url":"https://github.com/zetlen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mozu Google App Script Contact Form Example\n\nThis is an example widget that provides a contact form as a widget to be dragged and dropped into a Mozu SiteBuilder page. It connects to a Google Spreadsheet and requires a Google Apps account with privileges to that spreadsheet.\n\n**Note: This widget example is not officially supported by Mozu. It is an example implementation.**\n\n## Instructions\n\n0. Login with or create a Google Drive account. **It is important that this be an actual Google Account and not a Google Apps account managed for your domain. They look similar, but if you're in a Google Apps account, you will not be able to expose the script for anonymous use.\n\n0. While logged in to that Google Drive account, go to the [Google Apps Script start page](http://www.google.com/script/start/).\n\n0. Click \"Start Scripting\". When the dialog for project type comes up, click \"Blank Project\".\n\n0. Paste the contents of `googlecontactformscript.js` from this directory into the code window.\n\n0. Click the Save icon and name your project something descriptive, like \"Website Contact Form\".\n\n0. In the **Publish** menu, click \"Deploy as web app...\" or click the cloud icon in the toolbar.\n\n0. In the \"Project version\" text box, add a simple comment like \"initial version\" and click **Save New Version**. \n\n0. In the \"Execute the app as\" dropdown, choose \"me\". In the \"Who has access to the app\" dropdown, choose \"Anyone (even anonymous users).\n\n0. Publish the app. Copy the URL it gives you; this is your form URL and you'll need it later.\n\n0. You now need to authorize your new script with your own account. This is a non-intuitive process. In the **Run** menu, choose the **doGet** function. This will be the first time your script executes, and so a dialog box will appear asking you to authorize the script to run under your own account. Click **Approve**. (The script will run and fail because no arguments were sent to it, but that doesn't matter.)\n\n0. Go to your Google Drive homepage. Click **Create \u003e Spreadsheet**.\n\n0. In the top row of your spreadsheet, name four columns:\n    A1: Date\n    B1: Full Name\n    C1: Email Address\n    D1: Subject\n    E1: Message\n\n0. While your spreadsheet is open, go to your browser address bar and copy the value of the `key` parameter in the URL query string. This is your spreadsheet ID and you'll need it later.\n\n0. Install the contents of the `theme-patch` subdirectory from this directory into your theme. This means adding or merging the contents of its theme.json (a single widget) into your theme's theme.json file, and copying all other files to the relevant directories.\n\n0. On a SiteBuilder page, create a new instance of your new Contact Form widget. Paste your chosen admin name and contact email, as well as the form URL and spreadsheet ID you saved, into the appropriate fields.\n\nYour contact form should now be live!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzetlen%2Fmozu-google-contact-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzetlen%2Fmozu-google-contact-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzetlen%2Fmozu-google-contact-form/lists"}