Back to zzTakeoff Community Channel LogoBug Reports

Global.promptPopover not rendering a visible popup from the Developer Tools script runner

Hi team,


I'm writing a script in the Developer Tools console (Account menu → Developer Tools) and trying to use Global.promptPopover to show an in-app popup that prompts the user to paste/enter data and waits for their response. The script runs without throwing an error, but no popover ever appears on screen.


What I've observed while debugging:

  • When I await Global.promptPopover({ ... }), the call returns almost immediately (~1ms) instead of blocking while it waits for a user response, which suggests it isn't actually displaying and waiting.
  • I inspected the page's DOM after running it, and no new popover element is created — existing app popovers (scale, section properties, etc.) are present but hidden, and nothing matching my popover's title/content is ever added.
  • I tested with a minimal call — Global.promptPopover({ title: "Test", message: "Hello", inputs: { name: "" }, buttons: [{ name: "OK" }] }) — and it still produced no visible dialog.
  • Separately, Global.browseForFile() also produces no native file dialog from this same script runner, which makes me think it may be a general issue with how this environment surfaces modal/UI prompts rather than a problem with one specific function.


My questions:

  1. Is Global.promptPopover expected to work when triggered from the Developer Tools script runner, or only in certain contexts (e.g. a docked/undocked window, a specific page/view, or a user-gesture requirement)?
  2. What is the exact expected schema for the inputs parameter? The docs say "Form inputs keyed by field key," but don't specify the value shape — e.g. how to declare a multi-line textarea vs. a single-line field, labels, default values, etc. A complete working example would help.
  3. Is there any setup, permission, or environmental condition required for promptPopover (and browseForFile) to actually render their UI, or is the non-display a known issue?


For context: My end goal is to let a user run an "Item Data Import" script and be prompted to provide CSV data (ideally a file upload, or a paste-in text box as a fallback), which the script then parses and pushes into the master Templates library via Templates.insertBatch. The import logic itself works correctly when I hardcode the CSV; I just need a reliable way to prompt the user for input at run time.


Thanks!

0
You must be logged in to post replies. If you don't have an account you can signup here.