Add a Popup Message to your Google Docs

Ever wish that you could tell people something when they open up your Google Docs? Maybe “Make a copy of this document, answer the questions and share it with your teacher!” or “This is a draft!

Well, it’s possible.  Some simple coding in the script editor and you can make it happen.  I know that some of you are thinking “Simple . . . . coding. . . !?” while making this face, but it’s true.  Just follow the steps below and you’ll make it happen.

Before we jump into the how, or what it looks like, a few notes:

  • Only Editors will be able to see the popup.  In my testing, someone who is “can view” or “can comment” does not see the popup.  Also, they have to be explicitly shared as editors, not just “anyone with the link can edit.”
  • If you copy the document within your own account, the popup will appear on the copy as well.
  • If someone shared on the document makes a copy, the popup will NOT appear on their copy.
  • If you send the document out on Google Classroom as “Make a Copy for Each Student” it will NOT include the popup in those copies.  I was bummed when I discovered this, because it would have been huge for teachers.

Now that you know those notes and limitations, let’s dive into it.  First, an animated GIF of how to do it and then, below the GIF, the step by step with code that you can just copy and paste.

Add Popup Message to Google Docs Animation

Step-by-Step Instructions:

  1. From within your Google Doc, click on Tools > Script Editor.
  2. Click on Untitled Project and rename the project.
  3. Replace the words myFunction with onOpen. (This is what tells it to run automatically)
  4. After the { type DocumentApp. (include the period)
  5. From the menu that pops up select getUi : Ui
  6. After {DocumentApp.getUi() type a period.
  7. From the menu that pops up select alert(String prompt) : Button
  8. In place of the word prompt type your popup message.
  9. Add quotation marks around your message (and inside of the parentheses).
  10. Click the save icon.
  11. Go back to your Doc, refresh and check it out!

Another note: You can actually edit the appearance of the popup with some HTML and CSS coding, but that would take me longer to explain that 1 GIF can handle!

Credits: I learned this from one of Google’s Applied Digital Skills Courses in the “Code Welcome Screen” Activity.  You can learn about adding some formatting to your popup in that course.

Lunapic – Create Images with Transparent Backgrounds

When presenting about #StopMotionSlides, someone inevitably asks about cutting the background out of a picture so that it has a transparent background.  Up to this point, my answer has been Microsoft Word, but I wasn’t satisfied with that since it wouldn’t work on Chromebooks or on computers without Microsoft Word.  And then I listened to Episode 13 of the Shukes and Giff Podcast.  In it, Kim Pollishuke shared about Lunapic.

Lunapic is a free, web-based photo editing platform.  Along with a lot of other features (seriously, go to it and explore!), is the ability to make the background transparent.  If it’s a solid colored background (i.e., green screen), there are tools that automate it.  For images that don’t have a solid colored background (or have backgrounds that include colors that are in the main part of the image), you can also do it manually.  Check it out in the animated GIF below!  Side note: there’s even a Chrome extension so that you can edit images you find online more conveniently.

Lunapic Transparent Background Animation