skip to Main Content

Create Pseudo Slides from Google Form Submissions

Have you ever wanted to trigger a script on a Google Sheet of Google Form responses that would create a Google Slide containing the submitted information? Try this.

I recently shared a hack that made Google Slides act as a pseudo Google Doc so YouTube videos could be embedded. This post gives Google Docs the chance to fill a need not available in Google Slides – the creation of a new “slide” using autoCrat after a Google Form submission is received.

Let’s say I have a Google Form (inspired by Tom Barrett’s Interesting Ways series) that I ask my PLN use to crowdsource interesting ways to use Google Docs in the classroom. That form currently looks something like this (feel free to make a submission):


 

I would love to be able to trigger a script on the Google Sheet of form responses that would create a Google Slide containing the submitted information. Ideally, it would be a slide appended to an already existing Google Slide presentation. Unfortunately, that is not currently possible.

Yes, I know I could follow the same process Tom did by just making the actual Google Slides file freely editable by anyone but I’d rather have a bit more control and avoid digital vandalism.

Here is my hacked workflow.

When someone submits the Google Form above, the information is sent to a Google Sheet. I could have chosen to have autoCrat run on submission but, dreading spammy submissions, I am going to run the script manually after I review submissions. When I do run the merge script, autoCrat uses this Google Doc (see screenshot below) as the template for the merge. It has been formatted to look like a Google Slide (explained later in this post).

pseudo slide screenshot
 

The resulting autoCrat merge looks like this:

merged slide
 

If a URL to an image is provided in the submitted data, I will probably grab that image and slip it into the document but, for now, that’s the only way an image will get in.

Here is a comparison of what a similar Google Slide would like.

Compare Doc and Slide
 

It’s not perfect but it helps.

FYI: The Google Doc is set to a landscape orientation with all four margins decreased to 0.3 inches. I chose the Executive setting for paper size as it most closely resembled the slide size.

Page set up
 

If you are interested, here is an embedded Google Drive folder containing any of the merged documents I have reviewed and published.

 

I expect that, after reviewing, adding images, I will be converting these Docs to PDF so I can combine the PDFs into one document.

What ideas do you have for making this hack more efficient? I would love to hear them! Share in the comments below.

 

 

Fixing My Broken AutoCrat

I am awful about keeping up with what becomes deprecated by Google (DocsList is now gone and DriveApp must be used instead). Today, some of our district workflow threw errors because we are still using AutoCrat v4.5.5 (4/12/14). I will update over the summer, but for right now, I just wanted to get this installation of the script working. I headed over to the Google Group for Apps Script Issues and found the answer. I am sharing here in hopes it may save you all some searching.

First, make a copy of your sheet (just in case).

If you need help finding out if you are using the same version of AutoCrat as we are, here is how to find that AND how to get to the Script Editor.

version-autocrat-2Click image to view larger version in a new window.
 

In order to fix the script, you are going to be making changes to the code. PROCEED AT YOUR OWN RISK!

Click on the link to AutoCrat in your Script Editor window. It will look like this. Note: the left sidebar lists all the files it takes for AutoCrat to work its magic. 

AutoCrat 1

The Script Editor has a Find & Replace feature which can be found under the Edit menu. NOTE: I get a little nervous doing mass Find & Replace so I used the Find and then made the changes manually.

Find

Here are all the things you need to fix:

  • Replace all instances of docsList with DriveApp
  • Replace all instances (with quotes) of “document” and “DOCUMENT” with MimeType.GOOGLE_DOCS (no quotes)
  • Replace all instances of getFileType with getMimeType
  • Replace all instances of file.addToFolder(folder) with folder.addFile(file) – NOTE: Instead of having the word folder inside the parentheses, I had secondaryFolder so look for that one as well.
  • Replace all instances of file.removeFromFolder(DriveApp.getRootFolder()) to DriveApp.removeFile(file);
  • Replace all instances of pdfFile.removeFromFolder(DriveApp.getRootFolder()) to DriveApp.removeFile(pdfFile);

Save the changes in the Script Editor and try running your AutoCrat merge again.

This worked for me. I hope it works for you as well.

Back To Top