Coder Social home page Coder Social logo

lcenchew / gsuite-form-upload Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 103 KB

G-Suite Google Form setup using Google Apps Script - including file upload

License: MIT License

Dockerfile 20.06% JavaScript 79.94%
google-forms google-apps-script googleappsscript googleforms vscode-container gitpod-workspace

gsuite-form-upload's Introduction

clasp Gitpod ready-to-code

G-Suite Google Form File Upload - Google Apps Script

A simple setup for file upload using the file upload in Google Forms.

Quick Start

  • See Using Clasp to login, create or clone a project
  • Push code to project clasp push
  • For first time only, go to Script Editor to open your project and run createFormSubmitTrigger from createFormSubmitTrigger.js
  • Go to the form to create the file upload item to the form. (still unable to add programatically)
  • If needed, create other form content by running setupForm from setupForm.js in the Script Editor
  • If needed, create a spreadsheet to hold the form responses.

Note: If encounter "do not have permission" issue, run main from the Script Editor to review and approve the authorization.

Clasp

Using Clasp

Login the user

clasp login --no-localhost

Create a new Project

clasp create --title "File-Upload" --type forms --rootDir ./src

Clone and work on an existing project

clasp clone "*******" --rootDir ./src

Watch and push code when saved

clasp push --watch

Edit (if need to)

  • .clasp.json
"rootDir": "./src"
  • appsscript.json
"timeZone": "Asia/Singapore"

other useful commands

Open in the script editor

clasp open

VS Code

Preamble

  • Install Docker Desktop if not installed
  • Install the Remote Development extension pack in VS Code
  • Run Docker Desktop
  • Open repo folder with VS Code using Run Remote-Containers: Open Folder in Container...

Container composition

  • using this Dockerfile
  • FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:12

Gitpod

  • Click on this button Gitpod ready-to-code
  • Sign in with yout Github account to start

Container conposition

gsuite-form-upload's People

Contributors

lcenchew avatar

Stargazers

 avatar  avatar

Watchers

 avatar

gsuite-form-upload's Issues

Default form item should be deleted

When the form is created with clasp, a default form item is added.
This default item should be deleted before adding more form items with setupForm .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.