window.Tally object.
Add the widget script
Include the Tally widget script once on any page that uses popups:Tally.openPopup()
Opens a form in a popup.Reference
Tally.closePopup()
Closes a previously opened popup.Reference
Save page URL and query parameters
The widget automatically forwards the host page’s path and query parameters to the popup. To capture them in your submissions, add matching hidden fields to your form. For example, given the page URL:originPage, ref, and email will receive the following values:
| Hidden field | Value |
|---|---|
| originPage | /register |
| ref | downloads |
| alice@example.com |
Events
Popups emit the same JavaScript events as embeds — plus aTally.PopupClosed event when
the popup is dismissed. See Events for the full payload reference. You
can also subscribe to popup-specific callbacks (onOpen, onClose, onPageView,
onSubmit) directly via the options argument of Tally.openPopup().