class SpreadsheetApp method .toast()

SpreadsheetApp is the Apps Script service.

.toast() is the method name you will see after a dot in your code.

What it does

Shows a short message in the bottom corner of the spreadsheet.

Why it's used

  • Give quick feedback without blocking the user with a popup.
  • A saved-rows or sync-complete message that fades on its own.

Common errors

  • Forgetting parentheses on toast. Write SpreadsheetApp.toast(), not SpreadsheetApp.toast or toast by itself.
  • Skipping dots between chained calls. Each step needs a dot, like SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Data').toast().
  • Adding spaces where they do not belong. Write SpreadsheetApp.toast(), not SpreadsheetApp .toast(), SpreadsheetApp.toast (), or SpreadsheetApp . toast().
  • Wrong capitalization. Use SpreadsheetApp and toast, not spreadsheetapp or toast.

Explore

Related methods

  • .alert()

    Shows a simple alert box with an OK button.

  • .prompt()

    Shows a dialog that asks the user for text input.

  • .showModelessDialog()

    Opens a dialog the user can use while still working in the sheet.

  • .showModalDialog()

    Opens a modal dialog that blocks interaction with the sheet.

  • .addToUi()

    Publishes a custom menu to the spreadsheet UI.

Better Sheets tutorials

Advanced Coding in Google Sheets for Programmers

Advanced Coding in Google Sheets for Programmers

Add a Custom Menu Create Native-like Functions Get URL and Sheet ID's vi...
Can I get alerted when a tab name is changed?

Can I get alerted when a tab name is changed?

Find out in this quick experiment if a tab name can be alerted to the ow...
Count Merged Rows

Count Merged Rows

Count the number of cells or rows in a merged cell. This is a quick litt...
Creating a Live Message in Google Sheets

Creating a Live Message in Google Sheets

Sit back and enjoy this comprehensive tutorial on how to create a live m...
Introducing SheetFools

Introducing SheetFools

Free google sheets automations pranks you can use right now. Launching p...
SubSpyHub Subreddit Scanner

SubSpyHub Subreddit Scanner

I built a subreddit search tool to keep track of subreddits with keyword...
Sync Many Tabs without ImportRange()

Sync Many Tabs without ImportRange()

Sync more than two tabs with Apps Script
Sync Tabs in Different Sections

Sync Tabs in Different Sections

How to sync different sections on different tabs. In this case we're tak...
Sync Two Tabs Without ImportRange()

Sync Two Tabs Without ImportRange()

Get this epic script that automatically edits two tabs and keeps them in...
Visicalc 2023 Design Walkthrough

Visicalc 2023 Design Walkthrough

Design walkthrough of VisiCalc 2023. Watch this if you'd like to see the...
Visicalc 2023 Quick Walkthrough

Visicalc 2023 Quick Walkthrough

This is a fun template I created for April 1st. Take a quick walk throug...

Related blog posts

Written guides about SpreadsheetApp.toast().

Browse the blog