/SubmitGoogleForm

Submit a google form at a specific time

Primary LanguageJavaScript

SGF - SUBMIT GOOGLE FORM

INTRODUCTION: What does SGF do?

SGF is used to automatically submit a google form at a specific time.

HOW TO USE IT?

Use Google App Scripts to run this. All you really have to do is run the main function BUT before that, you need to initialise some variables in the Variables.gs file.

Step 1: Pre filled google form link

image

image

Once you have your pre filled url, replace it in the Variables.gs file (preFilledURL). Additionally, make sure to provide a response for all the required fields.

Step 2: Timezone

Find your timezone from the following list - http://worldtimeapi.org/api/timezone/. Some examples of timezones include - "Europe/Amsterdam", "Asia/Dubai". Once you have your timezone, replace it in the Variables.gs file (timeZone).

Step 3: Setting max values

updateTime is how often you'll receive an update about the current time and the time your google form will be submitted at. By default, it is set to 30 seconds.

You are free to modify this value in the Variables.gs file.

Step 4: Choose input method

There are two ways to specify when you'd like to submit the form.

  • The first one is of numerical type. This is where you'd input classic numbers like pi and e (these constants can also be found in the Variables.gs file)
  • The second one is in ISO 8601 date and time format.

If you're wondering how to format date and time in ISO 8601 format,

image

This information is also present in the Variables.gs file.

If you'd like to go with the first way, set dtInNumber to 1 and dateNum to the date in numerical form.
If you'd like to go with the second way, set dtInNumber to 0 and dateStr to the date in ISO 8601 form.

Step 5: Run the main function (Main.gs)

image