Opens a dialog the user can use while still working in the sheet.
class SpreadsheetApp method .showModelessDialog()
SpreadsheetApp is the Apps Script service.
.showModelessDialog() is the method name you will see after a dot in your code.
What it does
Why it's used
- Keep a helper window open while the user still edits the sheet.
- Show live search or preview without blocking the grid.
Common errors
- Forgetting parentheses on showModelessDialog. Write SpreadsheetApp.showModelessDialog(), not SpreadsheetApp.showModelessDialog or showModelessDialog by itself.
- Skipping dots between chained calls. Each step needs a dot, like SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Data').showModelessDialog().
- Adding spaces where they do not belong. Write SpreadsheetApp.showModelessDialog(), not SpreadsheetApp .showModelessDialog(), SpreadsheetApp.showModelessDialog (), or SpreadsheetApp . showModelessDialog().
- Wrong capitalization. Use SpreadsheetApp and showModelessDialog, not spreadsheetapp or showmodelessdialog.
Explore
Related methods
-
.showModalDialog()
Opens a modal dialog that blocks interaction with the sheet.
-
.prompt()
Shows a dialog that asks the user for text input.
-
.alert()
Shows a simple alert box with an OK button.
-
.activate()
Makes a sheet or range the active selection.
-
.toast()
Shows a short message in the bottom corner of the spreadsheet.
More Apps Script
Better Sheets tutorials
No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.
Related blog posts
Written guides about SpreadsheetApp.showModelessDialog().
What's Better Than Google Sheets?
Nothing is better than Google Sheets. You just need to learn more about the unlimited power of Google Sheets. Functions, Formulas, Apps Script and more.
Read post →How to Use Google Sheets as a Website Database
Did you know you can use Google Apps Script to turn a Google Sheet into a free, auto-syncing database for your website? This guide shows you exactly how to set it up. You’ll prepare your spreadsheet, write a few lines of code and publish your site. Don’t worry if you’re not a developer, we’ll walk you through it. Why Use Google Sheets as a Database? For small projects, Google Sheets offers many advantages over traditional databases: * Free hosting and storage * Easy to edit data without...
Read post →How to reference a different Google Spreadsheet in Apps Script?
Transferring Data Between Cells in Different Spreadsheets
Read post →