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.

1 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...

Related blog posts

Written guides about SpreadsheetApp.toast().

Browse the blog